-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[HttpFoundation] Fix the build on windows (with mbstring extension missing) #18029
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
Conversation
Hm.. the issue is not fully fixed just yet. Before the build was failing with two errors:
With this PR it only fails with the second one. @xabbuh I'm not sure why it was earlier implemented with a loop through all the characters. Perhaps you could give some more insights? |
Any reason not to use https://github.com/symfony/polyfill-mbstring as it provides a polyfill for the mb functions used here? |
@wouterj that's an option indeed |
A file with non-ascii characters in the name needs to be created from PHP in order for it to be read properly on all platforms.
Tests fixed. Just bare in mind this is an alternative to #18030. status: needs review |
Actually, this will only work with unicode, while the existing solution supports all available encodings. |
…ll (jakzal) This PR was squashed before being merged into the 2.3 branch (closes #18030). Discussion ---------- [HttpFoundation] Add a dependency on the mbstring polyfill | Q | A | ------------- | --- | Branch | 2.3 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? |no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - Alternative for #18029. Commits ------- 59b9f15 [HttpFoundation] Add a dependency on the mbstring polyfill
An alternative approach to #16656 that works without the mbstring extension. If we tried to follow the current approach and make it work without mbstring it would make code quite more complex.