mirror of
https://github.com/php/php-src.git
synced 2024-11-23 18:04:36 +08:00
fix crash #24842
This commit is contained in:
parent
b6ff804cfe
commit
7cb1730293
@ -189,8 +189,7 @@ void init_executor(TSRMLS_D)
|
||||
void shutdown_executor(TSRMLS_D)
|
||||
{
|
||||
zend_try {
|
||||
zend_ptr_stack_destroy(&EG(arg_types_stack));
|
||||
|
||||
zend_ptr_stack_clean(&EG(arg_types_stack), do_nothing, 1);
|
||||
/* Removed because this can not be safely done, e.g. in this situation:
|
||||
Object 1 creates object 2
|
||||
Object 3 holds reference to object 2.
|
||||
@ -286,6 +285,7 @@ void shutdown_executor(TSRMLS_D)
|
||||
|
||||
zend_hash_destroy(&EG(included_files));
|
||||
|
||||
zend_ptr_stack_destroy(&EG(arg_types_stack));
|
||||
zend_ptr_stack_destroy(&EG(user_error_handlers));
|
||||
zend_ptr_stack_destroy(&EG(user_exception_handlers));
|
||||
zend_objects_store_destroy(&EG(objects_store));
|
||||
|
Loading…
Reference in New Issue
Block a user