From: Stanislav Malyshev Date: Sun, 6 Jan 2019 21:28:30 +0000 (-0800) Subject: Fix tests - newer versions check Unicode X-Git-Tag: php-7.3.2RC1~48^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d0d0d922de02c7b2a248cc943490d7ae77f084be;p=php Fix tests - newer versions check Unicode --- diff --git a/ext/mbstring/tests/bug77370.phpt b/ext/mbstring/tests/bug77370.phpt index c4d25582fe..73f186bc90 100644 --- a/ext/mbstring/tests/bug77370.phpt +++ b/ext/mbstring/tests/bug77370.phpt @@ -6,8 +6,6 @@ Bug #77370 (Buffer overflow on mb regex functions - fetch_token) ---EXPECT-- -array(1) { - [0]=> - string(0) "" -} +--EXPECTF-- +Warning: mb_split(): mbregex compile err: invalid code point value in %sbug77370.php on line %d +bool(false) diff --git a/ext/mbstring/tests/bug77371.phpt b/ext/mbstring/tests/bug77371.phpt index 33e5fc115c..2ab04c04f6 100644 --- a/ext/mbstring/tests/bug77371.phpt +++ b/ext/mbstring/tests/bug77371.phpt @@ -6,5 +6,6 @@ Bug #77371 (heap buffer overflow in mb regex functions - compile_string_node) ---EXPECT-- -bool(false) \ No newline at end of file +--EXPECTF-- +Warning: mb_ereg(): mbregex compile err: invalid code point value in %sbug77371.php on line %d +bool(false) diff --git a/ext/mbstring/tests/bug77381.phpt b/ext/mbstring/tests/bug77381.phpt index cb83759fc0..3d6dd76a4a 100644 --- a/ext/mbstring/tests/bug77381.phpt +++ b/ext/mbstring/tests/bug77381.phpt @@ -9,8 +9,15 @@ var_dump(mb_ereg("(?i)000000000000000000000\xf0","")); var_dump(mb_ereg("0000\\"."\xf5","0")); var_dump(mb_ereg("(?i)FFF00000000000000000\xfd","")); ?> ---EXPECT-- -int(1) +--EXPECTF-- +Warning: mb_ereg(): mbregex compile err: invalid code point value in %sbug77381.php on line %d bool(false) + +Warning: mb_ereg(): mbregex compile err: invalid code point value in %sbug77381.php on line %d bool(false) + +Warning: mb_ereg(): mbregex compile err: invalid code point value in %sbug77381.php on line %d +bool(false) + +Warning: mb_ereg(): mbregex compile err: invalid code point value in %sbug77381.php on line %d bool(false)