Skip to content
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

Locale::getFallback returns false instead of null and infinite loop begins #31106

Closed
vytsci opened this issue Apr 14, 2019 · 4 comments
Closed

Comments

@vytsci
Copy link

vytsci commented Apr 14, 2019

Symfony version(s) affected: 3.x, 4.x

Description
Due to update in php-intl library this loop is infinite.

How to reproduce
Update php-intl to the latest version and try to get country names for en locale for example.

Possible Solution
For BC it would be great to loop until locale is empty so check could be !empty($currentlocale)

Additional context
Ive been struggling with this all morning, later I had to code on my laptop and this error was not present, Ive updated php-intl and error became present as on my work PC.

@ro0NL
Copy link
Contributor

ro0NL commented Apr 15, 2019

duplicate of #31089?

@vytsci
Copy link
Author

vytsci commented Apr 15, 2019

Yep sorry, I think so. Problem is Im using 3.x and Im unable to upgrade atm.

@xabbuh xabbuh closed this as completed Apr 15, 2019
@jakzal
Copy link
Contributor

jakzal commented Apr 15, 2019

@vytsci the fix is present in the 3.4 branch.

@vytsci
Copy link
Author

vytsci commented Apr 15, 2019

@jakzal yes Ive already found it. ty

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants