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 @@ -24,6 +24,12 @@ $strings = array (
24
24
"ABCD \0abcdABCD " ,
25
25
TRUE ,
26
26
FALSE ,
27
+
28
+ /* Check for off-by-one errors in the SSE implementation */
29
+ "AAAAAAAAAAAAAAAAAAAA " ,
30
+ "ZZZZZZZZZZZZZZZZZZZZ " ,
31
+ "@@@@@@@@@@@@@@@@@@@@ " ,
32
+ "[[[[[[[[[[[[[[[[[[[[ " ,
27
33
);
28
34
29
35
$ count = 0 ;
@@ -329,6 +335,18 @@ string(1) "1"
329
335
-- Iteration 7 --
330
336
string(0) ""
331
337
338
+ -- Iteration 8 --
339
+ string(20) "aaaaaaaaaaaaaaaaaaaa"
340
+
341
+ -- Iteration 9 --
342
+ string(20) "zzzzzzzzzzzzzzzzzzzz"
343
+
344
+ -- Iteration 10 --
345
+ string(20) "@@@@@@@@@@@@@@@@@@@@"
346
+
347
+ -- Iteration 11 --
348
+ string(20) "[[[[[[[[[[[[[[[[[[[["
349
+
332
350
*** Testing strtolower() with two different case strings ***
333
351
strings are same, with Case Insensitive
334
352
*** Done ***
Original file line number Diff line number Diff line change @@ -23,6 +23,11 @@ $strings = array (
23
23
"ABCD \0abcdABCD " ,
24
24
TRUE ,
25
25
FALSE ,
26
+ /* Check for off-by-one errors in the SSE implementation */
27
+ "aaaaaaaaaaaaaaaaaaaa " ,
28
+ "zzzzzzzzzzzzzzzzzzzz " ,
29
+ "```````````````````` " ,
30
+ "{{{{{{{{{{{{{{{{{{{{ " ,
26
31
);
27
32
28
33
$ count = 0 ;
@@ -329,6 +334,18 @@ string(1) "1"
329
334
-- Iteration 7 --
330
335
string(0) ""
331
336
337
+ -- Iteration 8 --
338
+ string(20) "AAAAAAAAAAAAAAAAAAAA"
339
+
340
+ -- Iteration 9 --
341
+ string(20) "ZZZZZZZZZZZZZZZZZZZZ"
342
+
343
+ -- Iteration 10 --
344
+ string(20) "````````````````````"
345
+
346
+ -- Iteration 11 --
347
+ string(20) "{{{{{{{{{{{{{{{{{{{{"
348
+
332
349
*** Testing strtoupper() with two different case strings ***
333
350
strings are same, with Case Insensitive
334
351
*** Done ***
You can’t perform that action at this time.
0 commit comments