-
Notifications
You must be signed in to change notification settings - Fork 119
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
Cannot pass symfony/polyfill-intl-idn under PHP 7.4 #122
Comments
This seems to happen at laravel-opcache/src/OpcacheClass.php Line 70 in d2ce88c
because polyfill files that require php 8 syntax are being parsed. For now I've simply run 'exclude' => [
...
...
'symfony/polyfill-ctype',
'symfony/polyfill-iconv',
'symfony/polyfill-intl-grapheme',
'symfony/polyfill-intl-idn',
'symfony/polyfill-intl-normalizer',
'symfony/polyfill-mbstring',
'symfony/polyfill-php80'
], Not a definitive solution but for now it works! |
Any updates soon @ovanschie ? :) |
The easy but not very viable solution is use php 8. |
I've spent some time digging into this today, and this appears to impact anyone running on PHP 7.x (7.4, in my case): When iterating over the found files, Normally this wouldn't be a problem, as the Symfony packages only load these files when running on PHP 8.x. However, the list of files doesn't know about this, so we attempt to inject PHP 8.x syntax into a PHP 7.x OPcache and everything goes sideways. The solution @lorenzocattaneo works as a short-term fix, but ultimately it's excluding everything in those symfony/polyfill-* packages from getting pre-loaded. @wojo1206's work in #125 would let us target specific files (as opposed to whole directories), which would be beneficial, but ultimately some better error handling within |
php version: 7.4.14
The text was updated successfully, but these errors were encountered: