mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
ext/pcre: fix new pcre2 test
close GH-21307
This commit is contained in:
@@ -6,5 +6,5 @@ $result = preg_match_all('/(?=ab\K)a/', 'ab', $matches);
|
||||
var_dump($result);
|
||||
?>
|
||||
--EXPECTF--
|
||||
Warning: preg_match_all(): Get subpatterns list failed in %s on line %d
|
||||
Warning: preg_match_all(): Compilation failed: \K is not allowed in lookarounds (but see PCRE2_EXTRA_ALLOW_LOOKAROUND_BSK) at offset %d in %s
|
||||
bool(false)
|
||||
|
||||
@@ -6,5 +6,5 @@ $result = preg_match('/(?=ab\K)a/', 'ab', $matches);
|
||||
var_dump($result);
|
||||
?>
|
||||
--EXPECTF--
|
||||
Warning: preg_match(): Get subpatterns list failed in %s on line %d
|
||||
Warning: preg_match(): Compilation failed: \K is not allowed in lookarounds (but see PCRE2_EXTRA_ALLOW_LOOKAROUND_BSK) at offset %d in %s
|
||||
bool(false)
|
||||
|
||||
Reference in New Issue
Block a user