]> granicus.if.org Git - php/commitdiff
Call the request_shutdown on modules before destroying symbol tables, so that
authorZeev Suraski <zeev@php.net>
Sat, 5 Jun 1999 19:10:40 +0000 (19:10 +0000)
committerZeev Suraski <zeev@php.net>
Sat, 5 Jun 1999 19:10:40 +0000 (19:10 +0000)
the session module can be implemented

Zend/zend_compile.c

index 9028da64d6af9c1834028be0b7d335cedcb2981e..ae1e6d4d52153117328a47f3cab0743a00b50cda 100644 (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));
 }