We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 648cda6 commit 5dfec88Copy full SHA for 5dfec88
Zend/zend_compile.c
@@ -422,6 +422,9 @@ void init_compiler(void) /* {{{ */
422
423
void shutdown_compiler(void) /* {{{ */
424
{
425
+ /* Reset filename before destroying the arena, as file cache may use arena allocated strings. */
426
+ zend_restore_compiled_filename(NULL);
427
+
428
zend_stack_destroy(&CG(loop_var_stack));
429
zend_stack_destroy(&CG(delayed_oplines_stack));
430
zend_stack_destroy(&CG(short_circuiting_opnums));
@@ -437,7 +440,6 @@ void shutdown_compiler(void) /* {{{ */
437
440
FREE_HASHTABLE(CG(delayed_autoloads));
438
441
CG(delayed_autoloads) = NULL;
439
442
}
- zend_restore_compiled_filename(NULL);
443
444
/* }}} */
445
0 commit comments