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
Proxy generating __sleep with uninitialized properties (PHP7.4.2+) #886
Comments
I'm stuck with the same error. I manage to reproduce it with the smallest Symfony project. Here it is: https://github.com/2ec0b4/symfony-proxy-issue |
I wanted to make PR fixing that problem, but i think it isn't as simple as we think :) Few ideas i had:
|
To me, a fix should be considered at the PHP level, I opened https://bugs.php.net/79447 🤞 |
@nicolas-grekas That’s why I wrote
cause i didn’t see any perfect solution to solve this problem directly in doctrine 😁 |
php/php-src#5396 will be part of PHP 7.4.6, thus nothing to do here. |
@nicolas-grekas I saw that problem escalated a little and also your PR was closed on php src. Will that problem be fixed soon in php src? What's the state of this problem for now ? |
Give PHP 7.4.6 a try, it's been released yesterday. |
Everything works fine now 🎉 , thank you @nicolas-grekas |
Probably best to add an exclusion range for |
That won't help: any release without this exclusion is still eligible but also suffers from the problem. This is not our problem to fix. |
It would still make upgrading to latest version clear and blocked off until 7.4.6 is installed (good). This has been done for similar reasons in:
Overall, it provides guidance for downstream, and this package is indeed still broken in 7.4.0~7.4.5. |
I think that first step also could be improvement of the tests in doctrine/common cause despite this problem tests have been passing for e.g. EDIT: I know that problem was fixed in php-src directly, and doctrine/common shouldn't check functionalities that are in php-src, but still in my opinion this test doesn't verify a lot of cases |
Closing as its a PHP bug. |
Proxy generator is creating
__sleep
method with uninitialized typed properties which is a critical bug since PHP 7.4.2 (https://bugs.php.net/bug.php?id=79002) ending in message:I've already reported it (not knowing the source of error hence the wrong repo) in doctrine/orm#8030 but it looks like it's stuck there forgotten.
The text was updated successfully, but these errors were encountered: