]> granicus.if.org Git - php/commitdiff
Drop non-well formed numeric strings in strings function tests
authorGeorge Peter Banyard <girgias@php.net>
Sun, 28 Jun 2020 16:13:43 +0000 (18:13 +0200)
committerGeorge Peter Banyard <girgias@php.net>
Sun, 28 Jun 2020 17:29:14 +0000 (19:29 +0200)
ext/standard/tests/strings/strpos.phpt
ext/standard/tests/strings/substr_count_variation_001.phpt

index e7c35ab270ce930ca90a60b9e8e45016c573587f..135030544e046ccfa3406e5ffe153f8f51c9002f 100644 (file)
Binary files a/ext/standard/tests/strings/strpos.phpt and b/ext/standard/tests/strings/strpos.phpt differ
index 19a9a0310d0dcdf9ce3acd468fe05414fc2a69b0..abfecac0977dd19cd9ffc8341a85151cb6a6727e 100644 (file)
@@ -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)