mirror of
https://github.com/php/php-src.git
synced 2024-11-23 18:04:36 +08:00
Destroy the resource list after destroying the symbol table, otherwise the
auto-destructor for resources are run when the resource list is no longer valid
This commit is contained in:
parent
39a7f4c306
commit
15be5f0b4a
@ -78,7 +78,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);
|
||||
destroy_resource_list();
|
||||
zend_hash_apply(&module_registry, (int (*)(void *)) module_registry_cleanup);
|
||||
}
|
||||
|
||||
|
@ -126,6 +126,8 @@ void shutdown_executor(ELS_D)
|
||||
|
||||
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));
|
||||
|
Loading…
Reference in New Issue
Block a user