Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
jakzal commentedMar 6, 2016
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? |
wouterj commentedMar 6, 2016
Any reason not to usehttps://github.com/symfony/polyfill-mbstring as it provides a polyfill for the mb functions used here? |
jakzal commentedMar 6, 2016
@wouterj that's an option indeed |
A file with non-ascii characters in the name needs to be created from PHPin order for it to be read properly on all platforms.
jakzal commentedMar 6, 2016
Tests fixed. Just bare in mind this is an alternative to#18030. status: needs review |
jakzal commentedMar 6, 2016
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.