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
Infinite loop in BundleEntryReader after updating php7.2-intl to 7.2.17 which installs libicu64 #31089
Comments
confirmed 👍 |
I just had the same issue after upgrading to php version 7.1.28 from 7.1.27. |
So this is fixed in 4.2.5, @megawilddaddy can you try upgrading to see if it solves your issue as well? |
Yes, upgrading to 4.2.5 fixed the issue. |
@ro0NL Do we have any chance to get this fix for 2.8 version? |
@vkhramtsov no, 2.8 only receives security fixes at this point. |
@jakzal I agree that it is not security fix, but this bug makes symfony completely unusable in some cases |
@fabpot What do you think? |
Anyway I've forked and fixed intl |
As @jakzal said, 2.8 is not maintained anymore, you should upgrade to 3.4 or downgrade PHP to a working version. |
@fabpot Thank you for clarification |
We had the same problem on some projects so we did overwrite the Locale.php class of the symfony/intl. The package is available under https://github.com/sulu/symfony-intl-fix. But I really would recommend to update to 3.4 and only use it as a temporary solution. EDIT: See also @TomasVotruba comment if you want to use vendor patches composer plugin: #31089 (comment) |
@alexander-schranz Thanks for sharing the solution 👏 Note for similar legacy upgrades: exact commit that fixes it: symfony/intl@d2ac837 |
PHP 7.2.17-1+ubuntu18.04.1+deb.sury.org+3
SYMFONY: Symfony 4.2.4
locale_parse('root') now return an empty array as opposed to previos php versions which makes the Symfony\Component\Intl\Data\Bundle\Reader loop through fallback locales as
"en" => "root" => "" => "root" => "" and so on without it becoming null to break the loop
when reading from the regions because in the Symfony\Component\Intl\Locale::getFallback()
we never get inside the if (1 === \count($localeSubTags))
The text was updated successfully, but these errors were encountered: