com php-src: Only functions of temporary modules have to be unregistered here: Zend/zend_API.c
| From: | Dmitry Stogov | Date: | Thu, 30 Nov 2017 08:40:52 +0000 |
| Subject: | com php-src: Only functions of temporary modules have to be unregistered here: Zend/zend_API.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-100445@lists.php.net to get a copy of this message | ||
Commit: 134248164c8d9aa679ef609a60ec3658cb80ca7d
Author: Dmitry Stogov <dmitry@zend.com> Thu, 30 Nov 2017 11:40:52 +0300
Parents: eccdc48c565e5147133c67e05e0c81a81326e83f
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=134248164c8d9aa679ef609a60ec3658cb80ca7d
Log:
Only functions of temporary modules have to be unregistered here
Changed paths:
M Zend/zend_API.c
Diff:
diff --git a/Zend/zend_API.c b/Zend/zend_API.c
index 1796671..ef702cb 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);
}