auto-destructor for resources are run when the resource list is no longer valid
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);
- destroy_resource_list();
zend_hash_apply(&module_registry, (int (*)(void *)) module_registry_cleanup);
}
zend_hash_destroy(&EG(symbol_table));
+ destroy_resource_list(); /* must be destroyed after the main symbol table is destroyed */
+
zend_ptr_stack_destroy(&EG(argument_stack));
if (EG(main_op_array)) {
destroy_op_array(EG(main_op_array));