1
0
mirror of https://github.com/php/php-src.git synced 2026-04-07 16:13:32 +02:00

Call the request_shutdown on modules before destroying symbol tables, so that

the session module can be implemented
This commit is contained in:
Zeev Suraski
1999-06-05 19:10:40 +00:00
parent bbce669cea
commit 89f139d3b0

View File

@@ -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));
}