File tree 2 files changed +35
-0
lines changed
ext/standard/tests/strings 2 files changed +35
-0
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,12 @@ $strings = array (
41
41
"ABCD \0abcdABCD " ,
42
42
TRUE ,
43
43
FALSE ,
44
+
45
+ /* Check for off-by-one errors in the SSE implementation */
46
+ "AAAAAAAAAAAAAAAAAAAA " ,
47
+ "ZZZZZZZZZZZZZZZZZZZZ " ,
48
+ "@@@@@@@@@@@@@@@@@@@@ " ,
49
+ "[[[[[[[[[[[[[[[[[[[[ " ,
44
50
);
45
51
46
52
$ count = 0 ;
@@ -218,6 +224,18 @@ string(1) "1"
218
224
-- Iteration 7 --
219
225
string(0) ""
220
226
227
+ -- Iteration 8 --
228
+ string(20) "aaaaaaaaaaaaaaaaaaaa"
229
+
230
+ -- Iteration 9 --
231
+ string(20) "zzzzzzzzzzzzzzzzzzzz"
232
+
233
+ -- Iteration 10 --
234
+ string(20) "@@@@@@@@@@@@@@@@@@@@"
235
+
236
+ -- Iteration 11 --
237
+ string(20) "[[[[[[[[[[[[[[[[[[[["
238
+
221
239
*** Testing strtolower() with two different case strings ***
222
240
strings are same, with Case Insensitive
223
241
*** Done ***
Original file line number Diff line number Diff line change @@ -41,6 +41,11 @@ $strings = array (
41
41
"ABCD \0abcdABCD " ,
42
42
TRUE ,
43
43
FALSE ,
44
+ /* Check for off-by-one errors in the SSE implementation */
45
+ "aaaaaaaaaaaaaaaaaaaa " ,
46
+ "zzzzzzzzzzzzzzzzzzzz " ,
47
+ "```````````````````` " ,
48
+ "{{{{{{{{{{{{{{{{{{{{ " ,
44
49
);
45
50
46
51
$ count = 0 ;
@@ -219,6 +224,18 @@ string(1) "1"
219
224
-- Iteration 7 --
220
225
string(0) ""
221
226
227
+ -- Iteration 8 --
228
+ string(20) "AAAAAAAAAAAAAAAAAAAA"
229
+
230
+ -- Iteration 9 --
231
+ string(20) "ZZZZZZZZZZZZZZZZZZZZ"
232
+
233
+ -- Iteration 10 --
234
+ string(20) "````````````````````"
235
+
236
+ -- Iteration 11 --
237
+ string(20) "{{{{{{{{{{{{{{{{{{{{"
238
+
222
239
*** Testing strtoupper() with two different case strings ***
223
240
strings are same, with Case Insensitive
224
241
*** Done ***
You can’t perform that action at this time.
0 commit comments