Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 7183330

Browse filesBrowse 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
Copy full SHA for 7183330

File tree

Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Component/Routing/Matcher/Dumper/StaticPrefixCollection.php
+2-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.