summaryrefslogtreecommitdiff
path: root/Zend/zend_API.c
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>2003-07-30 16:13:52 +0000
committerZeev Suraski <zeev@php.net>2003-07-30 16:13:52 +0000
commit2fd4ffce1782c49c5bf583115e2b2ecbf126950d (patch)
tree9fb2c2e5a027a715448145b19c4b163fab9414c4 /Zend/zend_API.c
parent81c5e49a68ab6d320be7f40edcd8baf46a78e185 (diff)
downloadphp-git-2fd4ffce1782c49c5bf583115e2b2ecbf126950d.tar.gz
Add exec_finished() callback for modules - this is the last place where the
modules may touch the symbol table reliably
Diffstat (limited to 'Zend/zend_API.c')
-rw-r--r--Zend/zend_API.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Zend/zend_API.c b/Zend/zend_API.c
index a9722a6c54..3b22dde873 100644
--- a/Zend/zend_API.c
+++ b/Zend/zend_API.c
@@ -1274,8 +1274,9 @@ void module_destructor(zend_module_entry *module)
if (module->type == MODULE_TEMPORARY) {
zend_clean_module_rsrc_dtors(module->module_number TSRMLS_CC);
clean_module_constants(module->module_number TSRMLS_CC);
- if (module->request_shutdown_func)
+ if (module->request_shutdown_func) {
module->request_shutdown_func(module->type, module->module_number TSRMLS_CC);
+ }
}
if (module->module_started && module->module_shutdown_func) {