mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Fix dl() module unloading in post deactivate
FOREACH_END_DEL() does not call the destructor by itself, we need to explicitly call it. Due to the missing dtor call the functions were not unregistered early, which resulted in later shutdown segfaults.
This commit is contained in:
parent
38f9c8d93d
commit
ed4c24274b
1 changed files with 1 additions and 0 deletions
|
@ -2608,6 +2608,7 @@ ZEND_API void zend_post_deactivate_modules(void) /* {{{ */
|
|||
if (module->type != MODULE_TEMPORARY) {
|
||||
break;
|
||||
}
|
||||
module_destructor(module);
|
||||
} ZEND_HASH_FOREACH_END_DEL();
|
||||
} else {
|
||||
zend_module_entry **p = module_post_deactivate_handlers;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue