Skip to content

Commit 7183330

Browse files
committed
Enhance error handling in StaticPrefixCollection for compatibility with libpcre2-10.43
The error handling function in the StaticPrefixCollection class has been extended. A new check for 'Compilation failed: length of lookbehind assertion is not limited' message error was added to improve the error capture process.
1 parent 6a229c7 commit 7183330

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Symfony/Component/Routing/Matcher/Dumper/StaticPrefixCollection.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@ private function getCommonPrefix(string $prefix, string $anotherPrefix): array
200200

201201
public static function handleError(int $type, string $msg)
202202
{
203-
return str_contains($msg, 'Compilation failed: lookbehind assertion is not fixed length');
203+
return str_contains($msg, 'Compilation failed: lookbehind assertion is not fixed length')
204+
|| str_contains($msg, 'Compilation failed: length of lookbehind assertion is not limited');
204205
}
205206
}

0 commit comments

Comments
 (0)