com php-src: Fix test: ext/pcre/tests/bug75457.phpt
| From: | Stanislav Malyshev | Date: | Mon, 26 Aug 2019 03:06:02 +0000 |
| Subject: | com php-src: Fix test: ext/pcre/tests/bug75457.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-108044@lists.php.net to get a copy of this message | ||
Commit: d1646e328aff679dccf5597476e98c182fe4365c
Author: Stanislav Malyshev <stas@php.net> Sun, 25 Aug 2019 20:06:02 -0700
Parents: 5d25ebb0dd30cdf4e8c7e83d1f0788e8fdb1c4ef
Branches: PHP-7.3 PHP-7.4 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=d1646e328aff679dccf5597476e98c182fe4365c
Log:
Fix test
Not sure why offset changed... probably different PCRE version calculates
them in different way.
Changed paths:
M ext/pcre/tests/bug75457.phpt
Diff:
diff --git a/ext/pcre/tests/bug75457.phpt b/ext/pcre/tests/bug75457.phpt
index c7ce9ed..ee5ab16 100644
--- a/ext/pcre/tests/bug75457.phpt
+++ b/ext/pcre/tests/bug75457.phpt
@@ -6,5 +6,5 @@ $pattern = "/(((?(?C)0?=))(?!()0|.(?0)0)())/";
var_dump(preg_match($pattern, "hello"));
?>
--EXPECTF--
-Warning: preg_match(): Compilation failed: assertion expected after (?( or (?(?C) at offset 4 in
%sbug75457.php on line %d
+Warning: preg_match(): Compilation failed: assertion expected after (?( or (?(?C) at offset 8 in
%sbug75457.php on line %d
bool(false)