Skip to content

Commit 718dd06

Browse files
committed
Don't suppress startup leaks
1 parent f0d783b commit 718dd06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2322,7 +2322,7 @@ int php_module_startup(sapi_module_struct *sf, zend_module_entry *additional_mod
23222322

23232323
/* Don't leak errors from startup into the per-request phase. */
23242324
clear_last_error();
2325-
shutdown_memory_manager(1, 0);
2325+
shutdown_memory_manager(!PG(report_memleaks), 0);
23262326
virtual_cwd_activate();
23272327

23282328
zend_interned_strings_switch_storage(1);

0 commit comments

Comments
 (0)