From: George Peter Banyard Date: Sun, 28 Jun 2020 16:13:43 +0000 (+0200) Subject: Drop non-well formed numeric strings in strings function tests X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=76643cd4f3c6e51260c99436f1f39a71571ddba9;p=php Drop non-well formed numeric strings in strings function tests --- diff --git a/ext/standard/tests/strings/strpos.phpt b/ext/standard/tests/strings/strpos.phpt index e7c35ab270..135030544e 100644 Binary files a/ext/standard/tests/strings/strpos.phpt and b/ext/standard/tests/strings/strpos.phpt differ diff --git a/ext/standard/tests/strings/substr_count_variation_001.phpt b/ext/standard/tests/strings/substr_count_variation_001.phpt index 19a9a0310d..abfecac097 100644 --- a/ext/standard/tests/strings/substr_count_variation_001.phpt +++ b/ext/standard/tests/strings/substr_count_variation_001.phpt @@ -8,8 +8,6 @@ echo "-- 3rd or 4th arg as string --\n"; $str = "this is a string"; var_dump( substr_count($str, "t", "5") ); var_dump( substr_count($str, "t", "5", "10") ); -var_dump( substr_count($str, "i", "5t") ); -var_dump( substr_count($str, "i", "5t", "10t") ); echo "\n-- 3rd or 4th arg as NULL --\n"; var_dump( substr_count($str, "I", NULL) ); @@ -49,20 +47,12 @@ var_dump(substr_count($str, "0")); echo "Done\n"; ?> ---EXPECTF-- +--EXPECT-- *** Testing possible variations *** -- 3rd or 4th arg as string -- int(1) int(1) -Notice: A non well formed numeric value encountered in %s on line %d -int(2) - -Notice: A non well formed numeric value encountered in %s on line %d - -Notice: A non well formed numeric value encountered in %s on line %d -int(2) - -- 3rd or 4th arg as NULL -- int(0) int(2)