-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
"invalid UTF-8 string" exception when upgraded to 4.1 #27448
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
Comments
would you be able to provide a repository we could clone to reproduce easily? |
The repository is private but I extracted a sample one with the whole route collection to illustrate the issue. It is available at this branch - https://github.com/SvetlinStaev/symfony/tree/test/utf_routing_issue |
Thanks for the reproducer, I'm on a fix now. |
fabpot
added a commit
that referenced
this issue
Jun 10, 2018
…n-capturing groups (nicolas-grekas) This PR was merged into the 4.1 branch. Discussion ---------- [Routing] fix matching host patterns, utf8 prefixes and non-capturing groups | Q | A | ------------- | --- | Branch? | 4.1 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #27448, #27461, #27504, #27512 | License | MIT | Doc PR | - Commits ------- 465b15c [Routing] fix matching host patterns, utf8 prefixes and non-capturing groups
Tried it on the latest 4.2.0-dev including the fix, works great! Thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Symfony version(s) affected: 4.1.0
Description
My current application is running on 3.4.11, today I tried to upgrade it to the latest 4.1.0 but when I boot it up I get the following:
preg_match(): Compilation failed: invalid UTF-8 string at offset 993
With a stack trace ending at the PhpMatcherDumper trying to match the following expression
It breaks on some UTF-8 characters, trying to match two routes - /изход and /изтрий-обява which have the same first two letters.
How to reproduce
The two routes are defined as:
and
Possible Solution
Additional context
The text was updated successfully, but these errors were encountered: