Skip to content

Commit 02d7641

Browse files
committed
Invoke destructors after fatal error to match shutdown handlers
1 parent b43a7ac commit 02d7641

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

main/main.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1474,7 +1474,6 @@ static ZEND_COLD void php_error_cb(int orig_type, zend_string *error_filename, c
14741474
if (!(orig_type & E_DONT_BAIL)) {
14751475
/* restore memory limit */
14761476
zend_set_memory_limit(PG(memory_limit));
1477-
zend_objects_store_mark_destructed(&EG(objects_store));
14781477
if (CG(in_compilation) && (type == E_COMPILE_ERROR || type == E_PARSE)) {
14791478
/* We bailout during compilation which may for example leave stale entries in CG(loop_var_stack).
14801479
* If code is compiled during shutdown, we need to make sure the compiler is reset to a clean state,

0 commit comments

Comments
 (0)