Skip to content

Commit 06e41ca

Browse files
committed
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.
1 parent 9b201ae commit 06e41ca

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

Zend/zend_execute_API.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -275,9 +275,6 @@ void shutdown_executor(void) /* {{{ */
275275
*/
276276
zend_llist_apply(&zend_extensions, (llist_apply_func_t) zend_extension_deactivator);
277277

278-
if (CG(unclean_shutdown)) {
279-
EG(symbol_table).pDestructor = zend_unclean_zval_ptr_dtor;
280-
}
281278
zend_hash_graceful_reverse_destroy(&EG(symbol_table));
282279
} zend_end_try();
283280
EG(valid_symbol_table) = 0;

0 commit comments

Comments
 (0)