Skip to content

Commit cea9857

Browse files
author
Mark Randall
committed
Latin 1 charset for strcmp
1 parent 2035b77 commit cea9857

File tree

1 file changed

+26
-26
lines changed

1 file changed

+26
-26
lines changed

ext/standard/tests/strings/strcmp.phpt

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,8 @@ Array
122122
[1] => A
123123
[2] => a
124124
[3] => A
125-
[4] =>
126-
[5] =>
125+
[4] => ?
126+
[5] => ?
127127
[6] => %0
128128
)
129129

@@ -132,62 +132,62 @@ Iteration 0
132132
- strcmp of 'a' and 'A' is => int(%d)
133133
- strcmp of 'a' and 'a' is => int(0)
134134
- strcmp of 'a' and 'A' is => int(%d)
135-
- strcmp of 'a' and '' is => int(-%d)
136-
- strcmp of 'a' and '' is => int(-%d)
135+
- strcmp of 'a' and '?' is => int(-%d)
136+
- strcmp of 'a' and '?' is => int(-%d)
137137
- strcmp of 'a' and '%0' is => int(%d)
138138

139139
Iteration 1
140140
- strcmp of 'A' and 'a' is => int(-%d)
141141
- strcmp of 'A' and 'A' is => int(0)
142142
- strcmp of 'A' and 'a' is => int(-%d)
143143
- strcmp of 'A' and 'A' is => int(0)
144-
- strcmp of 'A' and '' is => int(-%d)
145-
- strcmp of 'A' and '' is => int(-%d)
144+
- strcmp of 'A' and '?' is => int(-%d)
145+
- strcmp of 'A' and '?' is => int(-%d)
146146
- strcmp of 'A' and '%0' is => int(%d)
147147

148148
Iteration 2
149149
- strcmp of 'a' and 'a' is => int(0)
150150
- strcmp of 'a' and 'A' is => int(%d)
151151
- strcmp of 'a' and 'a' is => int(0)
152152
- strcmp of 'a' and 'A' is => int(%d)
153-
- strcmp of 'a' and '' is => int(-%d)
154-
- strcmp of 'a' and '' is => int(-%d)
153+
- strcmp of 'a' and '?' is => int(-%d)
154+
- strcmp of 'a' and '?' is => int(-%d)
155155
- strcmp of 'a' and '%0' is => int(%d)
156156

157157
Iteration 3
158158
- strcmp of 'A' and 'a' is => int(-%d)
159159
- strcmp of 'A' and 'A' is => int(0)
160160
- strcmp of 'A' and 'a' is => int(-%d)
161161
- strcmp of 'A' and 'A' is => int(0)
162-
- strcmp of 'A' and '' is => int(-%d)
163-
- strcmp of 'A' and '' is => int(-%d)
162+
- strcmp of 'A' and '?' is => int(-%d)
163+
- strcmp of 'A' and '?' is => int(-%d)
164164
- strcmp of 'A' and '%0' is => int(%d)
165165

166166
Iteration 4
167-
- strcmp of '' and 'a' is => int(%d)
168-
- strcmp of '' and 'A' is => int(%d)
169-
- strcmp of '' and 'a' is => int(%d)
170-
- strcmp of '' and 'A' is => int(%d)
171-
- strcmp of '' and '' is => int(0)
172-
- strcmp of '' and '' is => int(-%d)
173-
- strcmp of '' and '%0' is => int(%d)
167+
- strcmp of '?' and 'a' is => int(%d)
168+
- strcmp of '?' and 'A' is => int(%d)
169+
- strcmp of '?' and 'a' is => int(%d)
170+
- strcmp of '?' and 'A' is => int(%d)
171+
- strcmp of '?' and '?' is => int(0)
172+
- strcmp of '?' and '?' is => int(-%d)
173+
- strcmp of '?' and '%0' is => int(%d)
174174

175175
Iteration 5
176-
- strcmp of '' and 'a' is => int(%d)
177-
- strcmp of '' and 'A' is => int(%d)
178-
- strcmp of '' and 'a' is => int(%d)
179-
- strcmp of '' and 'A' is => int(%d)
180-
- strcmp of '' and '' is => int(%d)
181-
- strcmp of '' and '' is => int(0)
182-
- strcmp of '' and '%0' is => int(%d)
176+
- strcmp of '?' and 'a' is => int(%d)
177+
- strcmp of '?' and 'A' is => int(%d)
178+
- strcmp of '?' and 'a' is => int(%d)
179+
- strcmp of '?' and 'A' is => int(%d)
180+
- strcmp of '?' and '?' is => int(%d)
181+
- strcmp of '?' and '?' is => int(0)
182+
- strcmp of '?' and '%0' is => int(%d)
183183

184184
Iteration 6
185185
- strcmp of '%0' and 'a' is => int(-%d)
186186
- strcmp of '%0' and 'A' is => int(-%d)
187187
- strcmp of '%0' and 'a' is => int(-%d)
188188
- strcmp of '%0' and 'A' is => int(-%d)
189-
- strcmp of '%0' and '' is => int(-%d)
190-
- strcmp of '%0' and '' is => int(-%d)
189+
- strcmp of '%0' and '?' is => int(-%d)
190+
- strcmp of '%0' and '?' is => int(-%d)
191191
- strcmp of '%0' and '%0' is => int(0)
192192

193193
*** comparing the strings in an

0 commit comments

Comments
 (0)