-
Notifications
You must be signed in to change notification settings - Fork 7.9k
dl() of module with aliased class crashes in shutdown #15367
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
Comments
Might be a manifestation of #9196. |
I believe this |
@bwoebi, any thoughts about deprecating |
No feedback was provided. The issue is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so. Thank you. |
We destroy classes of dl()'ed modules in clean_module_classes(), during shutdown. Child classes of a module use structures of the parent class (such as inherited properties), which are destroyed earlier, so we have a use-after-free when destroying a child class. Here I destroy classes in reverse order, as it is done in zend_shutdown() for persistent classes. Fixes GH-17961 Fixes GH-15367
Fixed by #17961 |
Description
Reproducible with a shared build of zend_test.
PHP Version
8.3.9
Operating System
No response
The text was updated successfully, but these errors were encountered: