From: Zeev Suraski Date: Sat, 5 Jun 1999 19:10:40 +0000 (+0000) Subject: Call the request_shutdown on modules before destroying symbol tables, so that X-Git-Tag: BEFORE_REMOVING_GC_STEP1~199 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=89f139d3b05c60232cc05e5f9359800a1fd466cb;p=php Call the request_shutdown on modules before destroying symbol tables, so that the session module can be implemented --- diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c index 9028da64d6..ae1e6d4d52 100644 --- a/Zend/zend_compile.c +++ b/Zend/zend_compile.c @@ -73,6 +73,7 @@ void init_compiler(CLS_D ELS_DC) void shutdown_compiler(CLS_D) { + zend_hash_apply(&module_registry, (int (*)(void *)) module_registry_cleanup); zend_stack_destroy(&CG(bp_stack)); zend_stack_destroy(&CG(function_call_stack)); zend_stack_destroy(&CG(switch_cond_stack)); @@ -80,7 +81,6 @@ void shutdown_compiler(CLS_D) zend_llist_destroy(&CG(filenames_list)); zend_hash_apply(CG(function_table), (int (*)(void *)) is_not_internal_function); zend_hash_apply(CG(class_table), (int (*)(void *)) is_not_internal_class); - zend_hash_apply(&module_registry, (int (*)(void *)) module_registry_cleanup); zend_llist_destroy(&CG(open_files)); }