diff options
Diffstat (limited to 'ext/mbstring/tests/mb_strpos_variation3.phpt')
| -rw-r--r-- | ext/mbstring/tests/mb_strpos_variation3.phpt | 62 |
1 files changed, 35 insertions, 27 deletions
diff --git a/ext/mbstring/tests/mb_strpos_variation3.phpt b/ext/mbstring/tests/mb_strpos_variation3.phpt index 8079a19021..f30b708183 100644 --- a/ext/mbstring/tests/mb_strpos_variation3.phpt +++ b/ext/mbstring/tests/mb_strpos_variation3.phpt @@ -51,45 +51,47 @@ $inputs = array( /*1*/ 0, 1, 12345, + -5, -2345, // float data -/*5*/ 10.5, - -10.5, +/*6*/ 10.5, + -5.5, + -100.5, 12.3456789000e10, 12.3456789000E-10, .5, // null data -/*10*/ NULL, +/*12*/ NULL, null, // boolean data -/*12*/ true, +/*14*/ true, false, TRUE, FALSE, // empty data -/*16*/ "", +/*18*/ "", '', // string data -/*18*/ "string", +/*20*/ "string", 'string', $heredoc, // object data -/*21*/ new classA(), +/*23*/ new classA(), // undefined data -/*22*/ @$undefined_var, +/*24*/ @$undefined_var, // unset data -/*23*/ @$unset_var, +/*25*/ @$unset_var, // resource variable -/*24*/ $fp +/*26*/ $fp ); // loop through each element of $inputs to check the behavior of mb_strpos() @@ -119,28 +121,28 @@ Warning: mb_strpos(): Offset not contained in string in %s on line %d bool(false) -- Iteration 4 -- - -Warning: mb_strpos(): Offset not contained in string in %s on line %d -bool(false) +int(8) -- Iteration 5 -- + +Warning: mb_strpos(): Offset not contained in string in %s on line %d bool(false) -- Iteration 6 -- - -Warning: mb_strpos(): Offset not contained in string in %s on line %d bool(false) -- Iteration 7 -- +int(8) + +-- Iteration 8 -- Warning: mb_strpos(): Offset not contained in string in %s on line %d bool(false) --- Iteration 8 -- -int(8) - -- Iteration 9 -- -int(8) + +Warning: mb_strpos(): Offset not contained in string in %s on line %d +bool(false) -- Iteration 10 -- int(8) @@ -161,42 +163,48 @@ int(8) int(8) -- Iteration 16 -- +int(8) + +-- Iteration 17 -- +int(8) + +-- Iteration 18 -- Warning: mb_strpos() expects parameter 3 to be integer, string given in %s on line %d NULL --- Iteration 17 -- +-- Iteration 19 -- Warning: mb_strpos() expects parameter 3 to be integer, string given in %s on line %d NULL --- Iteration 18 -- +-- Iteration 20 -- Warning: mb_strpos() expects parameter 3 to be integer, string given in %s on line %d NULL --- Iteration 19 -- +-- Iteration 21 -- Warning: mb_strpos() expects parameter 3 to be integer, string given in %s on line %d NULL --- Iteration 20 -- +-- Iteration 22 -- Warning: mb_strpos() expects parameter 3 to be integer, string given in %s on line %d NULL --- Iteration 21 -- +-- Iteration 23 -- Warning: mb_strpos() expects parameter 3 to be integer, object given in %s on line %d NULL --- Iteration 22 -- +-- Iteration 24 -- int(8) --- Iteration 23 -- +-- Iteration 25 -- int(8) --- Iteration 24 -- +-- Iteration 26 -- Warning: mb_strpos() expects parameter 3 to be integer, resource given in %s on line %d NULL |
