1
0
mirror of https://github.com/php/php-src.git synced 2026-04-25 00:48:25 +02:00

Only functions of temporary modules have to be unregistered here

This commit is contained in:
Dmitry Stogov
2017-11-30 11:40:52 +03:00
parent eccdc48c56
commit 134248164c
+1 -1
View File
@@ -2509,7 +2509,7 @@ void module_destructor(zend_module_entry *module) /* {{{ */
}
module->module_started=0;
if (module->functions) {
if (module->type == MODULE_TEMPORARY && module->functions) {
zend_unregister_functions(module->functions, -1, NULL);
}