Skip to content

Commit 7bc80c0

Browse files
committed
Merge branch 'PHP-8.5'
* PHP-8.5: ext/pcre: fix new pcre2 test
2 parents 9cc1d32 + e64e8b0 commit 7bc80c0

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(): 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)