Not sure why offset changed... probably different PCRE version calculates
them in different way.
This commit is contained in:
Stanislav Malyshev 2019-08-25 20:06:02 -07:00
parent 5d25ebb0dd
commit d1646e328a

View file

@ -6,5 +6,5 @@ $pattern = "/(((?(?C)0?=))(?!()0|.(?0)0)())/";
var_dump(preg_match($pattern, "hello")); var_dump(preg_match($pattern, "hello"));
?> ?>
--EXPECTF-- --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) bool(false)