We don't need any special handling for CG(unclean_shutdown) at this point, because in case of exit() or die() all destructors must be already called before.

This commit is contained in:
Dmitry Stogov 2017-06-21 16:11:50 +03:00
parent 9b201aec07
commit 06e41cadd9

View file

@ -275,9 +275,6 @@ void shutdown_executor(void) /* {{{ */
*/ */
zend_llist_apply(&zend_extensions, (llist_apply_func_t) zend_extension_deactivator); zend_llist_apply(&zend_extensions, (llist_apply_func_t) zend_extension_deactivator);
if (CG(unclean_shutdown)) {
EG(symbol_table).pDestructor = zend_unclean_zval_ptr_dtor;
}
zend_hash_graceful_reverse_destroy(&EG(symbol_table)); zend_hash_graceful_reverse_destroy(&EG(symbol_table));
} zend_end_try(); } zend_end_try();
EG(valid_symbol_table) = 0; EG(valid_symbol_table) = 0;