Skip to content

Commit 35ade67

Browse files
committed
ext/pcre: fix new pcre2 test
1 parent 5406176 commit 35ade67

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ext/pcre/tests/preg_match_all_negative_length_match.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ $result = preg_match_all('/(?=ab\K)a/', 'ab', $matches);
66
var_dump($result);
77
?>
88
--EXPECTF--
9-
Warning: preg_match_all(): Get subpatterns list failed in %s on line %d
9+
Warning: preg_match_all(): Compilation failed: \K is not allowed in lookarounds (but see PCRE2_EXTRA_ALLOW_LOOKAROUND_BSK) at offset %d in %s
1010
bool(false)

ext/pcre/tests/preg_match_negative_length_match.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ $result = preg_match('/(?=ab\K)a/', 'ab', $matches);
66
var_dump($result);
77
?>
88
--EXPECTF--
9-
Warning: preg_match(): Get subpatterns list failed in %s on line %d
9+
Warning: preg_match_all(): Compilation failed: \K is not allowed in lookarounds (but see PCRE2_EXTRA_ALLOW_LOOKAROUND_BSK) at offset %d in %s
1010
bool(false)

0 commit comments

Comments
 (0)