Index: Zend/zend_execute_API.c =================================================================== RCS file: /repository/ZendEngine2/zend_execute_API.c,v retrieving revision 1.331.2.20.2.4 diff -u -p -d -r1.331.2.20.2.4 zend_execute_API.c --- Zend/zend_execute_API.c 13 Jun 2006 12:57:48 -0000 1.331.2.20.2.4 +++ Zend/zend_execute_API.c 6 Jul 2006 07:35:14 -0000 @@ -264,6 +264,13 @@ void shutdown_executor(TSRMLS_D) zend_ptr_stack_destroy(&EG(argument_stack)); + while (EG(symtable_cache_ptr)>=EG(symtable_cache)) { + zend_hash_destroy(*EG(symtable_cache_ptr)); + FREE_HASHTABLE(*EG(symtable_cache_ptr)); + EG(symtable_cache_ptr)--; + } + zend_objects_store_free_object_storage(&EG(objects_store) TSRMLS_CC); + /* Destroy all op arrays */ if (EG(full_tables_cleanup)) { zend_hash_apply(EG(function_table), (apply_func_t) clean_non_persistent_function_full TSRMLS_CC); @@ -273,12 +280,6 @@ void shutdown_executor(TSRMLS_D) zend_hash_reverse_apply(EG(class_table), (apply_func_t) clean_non_persistent_class TSRMLS_CC); } - while (EG(symtable_cache_ptr)>=EG(symtable_cache)) { - zend_hash_destroy(*EG(symtable_cache_ptr)); - FREE_HASHTABLE(*EG(symtable_cache_ptr)); - EG(symtable_cache_ptr)--; - } - zend_objects_store_free_object_storage(&EG(objects_store) TSRMLS_CC); } zend_end_try(); zend_try {