Skip to content

Conversation

@pull
Copy link

@pull pull bot commented Mar 14, 2025

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.1)

Can you help keep this open source service alive? 💖 Please sponsor : )

SakiTakamachi and others added 4 commits March 14, 2025 17:52
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
* PHP-8.3:
  Destroy temporary module classes in reverse order
* PHP-8.4:
  Destroy temporary module classes in reverse order
@pull pull bot added the ⤵️ pull label Mar 14, 2025
@pull pull bot merged commit f75dd82 into wudi:master Mar 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants