From: Dmitry Stogov Date: Thu, 30 Nov 2017 08:40:52 +0000 (+0300) Subject: Only functions of temporary modules have to be unregistered here X-Git-Tag: php-7.3.0alpha1~912 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=134248164c8d9aa679ef609a60ec3658cb80ca7d;p=php Only functions of temporary modules have to be unregistered here --- diff --git a/Zend/zend_API.c b/Zend/zend_API.c index 179667140b..ef702cb30b 100644 --- a/Zend/zend_API.c +++ b/Zend/zend_API.c @@ -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); }