com php-src: Fixed tests: ext/standard/tests/strings/strripos _offset.phpt ext/standard/tests/strings/strrpos_offset .phpt
ext/standard/tests/strings/strrpos_variation15 .phpt

From: Date: Mon, 23 Jul 2018 14:00:33 +0000
Subject: com php-src: Fixed tests: ext/standard/tests/strings/strripos _offset.phpt ext/standard/tests/strings/strrpos_offset .phpt
ext/standard/tests/strings/strrpos_variation15 .phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-102654@lists.php.net to get a copy of this message
Commit: 7ef8e3f87f1ace8431cdd8252a8b355529200666 Author: Dmitry Stogov <dmitry@zend.com> Mon, 23 Jul 2018 17:00:33 +0300 Parents: d4e60a1ffdaa63f4993d8c4c23eba998a8abc555 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=7ef8e3f87f1ace8431cdd8252a8b355529200666 Log: Fixed tests Changed paths: M ext/standard/tests/strings/strripos_offset.phpt M ext/standard/tests/strings/strrpos_offset.phpt M ext/standard/tests/strings/strrpos_variation15.phpt Diff: diff --git a/ext/standard/tests/strings/strripos_offset.phpt b/ext/standard/tests/strings/strripos_offset.phpt index 6a33956..080f870 100644 --- a/ext/standard/tests/strings/strripos_offset.phpt +++ b/ext/standard/tests/strings/strripos_offset.phpt @@ -33,12 +33,16 @@ bool(false) Warning: strripos() expects parameter 1 to be string, array given in %s on line %d bool(false) +Deprecated: strripos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in %s on line %d + Warning: strripos(): Offset is greater than the length of haystack string in %s on line %d bool(false) Warning: strripos(): Offset is greater than the length of haystack string in %s on line %d bool(false) +Deprecated: strripos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in %s on line %d + Warning: strripos(): Offset is greater than the length of haystack string in %s on line %d bool(false) diff --git a/ext/standard/tests/strings/strrpos_offset.phpt b/ext/standard/tests/strings/strrpos_offset.phpt index 239fdb3..72f0c5f 100644 --- a/ext/standard/tests/strings/strrpos_offset.phpt +++ b/ext/standard/tests/strings/strrpos_offset.phpt @@ -29,12 +29,16 @@ bool(false) Warning: strrpos() expects parameter 3 to be int, float given in %s on line %d bool(false) +Deprecated: strrpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in %s on line %d + Warning: strrpos(): Offset is greater than the length of haystack string in %s on line %d bool(false) Warning: strrpos(): Offset is greater than the length of haystack string in %s on line %d bool(false) +Deprecated: strrpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in %s on line %d + Warning: strrpos(): Offset is greater than the length of haystack string in %s on line %d bool(false) diff --git a/ext/standard/tests/strings/strrpos_variation15.phpt b/ext/standard/tests/strings/strrpos_variation15.phpt index d9a40e0..1b8983e 100644 --- a/ext/standard/tests/strings/strrpos_variation15.phpt +++ b/ext/standard/tests/strings/strrpos_variation15.phpt @@ -91,23 +91,35 @@ echo "*** Done ***"; --EXPECTF-- *** Testing strrpos() function: with unexpected values for haystack, needle & offset *** -- Iteration 1 -- + +Deprecated: strrpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in %s on line %d bool(false) -- Iteration 2 -- + +Deprecated: strrpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in %s on line %d bool(false) -- Iteration 3 -- +Deprecated: strrpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in %s on line %d + Warning: strrpos(): Offset is greater than the length of haystack string in %s on line %d bool(false) -- Iteration 4 -- +Deprecated: strrpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in %s on line %d + Warning: strrpos(): Offset is greater than the length of haystack string in %s on line %d bool(false) -- Iteration 5 -- +Deprecated: strrpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in %s on line %d + Warning: strrpos(): Offset is greater than the length of haystack string in %s on line %d bool(false) -- Iteration 6 -- +Deprecated: strrpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in %s on line %d + Warning: strrpos(): Offset is greater than the length of haystack string in %s on line %d bool(false) -- Iteration 7 -- @@ -115,8 +127,12 @@ bool(false) Warning: strrpos() expects parameter 3 to be int, float given in %s on line %d bool(false) -- Iteration 8 -- + +Deprecated: strrpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in %s on line %d bool(false) -- Iteration 9 -- + +Deprecated: strrpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in %s on line %d bool(false) -- Iteration 10 -- @@ -139,12 +155,20 @@ bool(false) Warning: strrpos() expects parameter 1 to be string, array given in %s on line %d bool(false) -- Iteration 15 -- + +Deprecated: strrpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in %s on line %d bool(false) -- Iteration 16 -- + +Deprecated: strrpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in %s on line %d bool(false) -- Iteration 17 -- + +Deprecated: strrpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in %s on line %d bool(false) -- Iteration 18 -- + +Deprecated: strrpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in %s on line %d bool(false) -- Iteration 19 -- @@ -159,15 +183,23 @@ bool(false) Warning: strrpos() expects parameter 3 to be int, string given in %s on line %d bool(false) -- Iteration 22 -- + +Deprecated: strrpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in %s on line %d bool(false) -- Iteration 23 -- + +Deprecated: strrpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in %s on line %d bool(false) -- Iteration 24 -- Warning: strrpos() expects parameter 1 to be string, resource given in %s on line %d bool(false) -- Iteration 25 -- + +Deprecated: strrpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in %s on line %d bool(false) -- Iteration 26 -- + +Deprecated: strrpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in %s on line %d bool(false) *** Done ***

« previous php.cvs (#102654) next »