summaryrefslogtreecommitdiff
path: root/Zend/zend_API.c
diff options
context:
space:
mode:
authorThies C. Arntzen <thies@php.net>2000-04-24 15:49:23 +0000
committerThies C. Arntzen <thies@php.net>2000-04-24 15:49:23 +0000
commit9786e4450a11c99ab8524ebdb3e0c48099e3a517 (patch)
tree9ae2da6bb9cc88b1c87c96abc1c476d630b583f9 /Zend/zend_API.c
parent2a17453e42e575d00568ffa721ece59ee021142a (diff)
downloadphp-git-9786e4450a11c99ab8524ebdb3e0c48099e3a517.tar.gz
MODULE_TEMPORARY should get a call to RSHUTDOWN as well!
Diffstat (limited to 'Zend/zend_API.c')
-rw-r--r--Zend/zend_API.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/Zend/zend_API.c b/Zend/zend_API.c
index aace9a6d21..81fe8c688f 100644
--- a/Zend/zend_API.c
+++ b/Zend/zend_API.c
@@ -837,24 +837,26 @@ int module_registry_request_startup(zend_module_entry *module)
/* for persistent modules - call request shutdown and flag NOT to erase
- * for temporary modules - do nothing, and flag to erase
+ * for temporary modules - call request shutdown and flag to erase
*/
int module_registry_cleanup(zend_module_entry *module)
{
- switch(module->type) {
- case MODULE_PERSISTENT:
- if (module->request_shutdown_func) {
+ if (module->request_shutdown_func) {
#if 0
- zend_printf("%s: Request shutdown\n",module->name);
+ zend_printf("%s: Request shutdown\n",module->name);
#endif
- module->request_shutdown_func(module->type, module->module_number);
- }
+ module->request_shutdown_func(module->type, module->module_number);
+ }
+
+ switch(module->type) {
+ case MODULE_PERSISTENT:
return 0;
break;
case MODULE_TEMPORARY:
return 1;
break;
}
+
return 0;
}