Skip to content

Commit 4eea26f

Browse files
committed
Add ZEND_FORCE_FAST_SHUTDOWN conditional
1 parent 18a6320 commit 4eea26f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Zend/zend_execute_API.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,11 @@ void shutdown_executor(void) /* {{{ */
439439
#if ZEND_DEBUG
440440
bool fast_shutdown = 0;
441441
#elif defined(__SANITIZE_ADDRESS__)
442-
bool fast_shutdown = !EG(full_tables_cleanup);
442+
char *forceFastShutdown = getenv("ZEND_FORCE_FAST_SHUTDOWN");
443+
bool fast_shutdown = (
444+
is_zend_mm()
445+
|| (forceFastShutdown && ZEND_ATOL(forceFastShutdown))
446+
) && EG(full_tables_cleanup);
443447
#else
444448
bool fast_shutdown = is_zend_mm() && !EG(full_tables_cleanup);
445449
#endif

0 commit comments

Comments
 (0)