Skip to content

Commit 76643cd

Browse files
committed
Drop non-well formed numeric strings in strings function tests
1 parent 956dde0 commit 76643cd

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed
-360 Bytes
Binary file not shown.

ext/standard/tests/strings/substr_count_variation_001.phpt

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ echo "-- 3rd or 4th arg as string --\n";
88
$str = "this is a string";
99
var_dump( substr_count($str, "t", "5") );
1010
var_dump( substr_count($str, "t", "5", "10") );
11-
var_dump( substr_count($str, "i", "5t") );
12-
var_dump( substr_count($str, "i", "5t", "10t") );
1311

1412
echo "\n-- 3rd or 4th arg as NULL --\n";
1513
var_dump( substr_count($str, "I", NULL) );
@@ -49,20 +47,12 @@ var_dump(substr_count($str, "0"));
4947
echo "Done\n";
5048

5149
?>
52-
--EXPECTF--
50+
--EXPECT--
5351
*** Testing possible variations ***
5452
-- 3rd or 4th arg as string --
5553
int(1)
5654
int(1)
5755

58-
Notice: A non well formed numeric value encountered in %s on line %d
59-
int(2)
60-
61-
Notice: A non well formed numeric value encountered in %s on line %d
62-
63-
Notice: A non well formed numeric value encountered in %s on line %d
64-
int(2)
65-
6656
-- 3rd or 4th arg as NULL --
6757
int(0)
6858
int(2)

0 commit comments

Comments
 (0)