Skip to content

Commit fbf59cd

Browse files
committed
Do not try to shut down if already in shut down
1 parent b6c8129 commit fbf59cd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

main/main.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1846,6 +1846,10 @@ void php_request_shutdown(void *dummy)
18461846
{
18471847
bool report_memleaks;
18481848

1849+
if (EG(flags) & EG_FLAGS_IN_SHUTDOWN) {
1850+
return;
1851+
}
1852+
18491853
EG(flags) |= EG_FLAGS_IN_SHUTDOWN;
18501854

18511855
report_memleaks = PG(report_memleaks);

0 commit comments

Comments
 (0)