]> granicus.if.org Git - php/commitdiff
Fix test
authorStanislav Malyshev <stas@php.net>
Mon, 26 Aug 2019 03:06:02 +0000 (20:06 -0700)
committerStanislav Malyshev <stas@php.net>
Mon, 26 Aug 2019 03:06:02 +0000 (20:06 -0700)
Not sure why offset changed... probably different PCRE version calculates
them in different way.

ext/pcre/tests/bug75457.phpt

index c7ce9ed0f9eb9c8cac2255f288d45420b69c859a..ee5ab162f8a6c4e0555dc75e4aff9ad63857f268 100644 (file)
@@ -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)