summaryrefslogtreecommitdiff
path: root/main/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main/main.c')
-rw-r--r--main/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/main/main.c b/main/main.c
index a8674a5d11..9e139eff72 100644
--- a/main/main.c
+++ b/main/main.c
@@ -1799,6 +1799,8 @@ void php_request_shutdown(void *dummy)
{
zend_bool report_memleaks;
+ EG(flags) |= EG_FLAGS_IN_SHUTDOWN;
+
report_memleaks = PG(report_memleaks);
/* EG(current_execute_data) points into nirvana and therefore cannot be safely accessed