1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 08:12:21 +01:00

Don't report leak on unclean_shutdown during startup

In particular if an invalid ini option is specified.
This commit is contained in:
Nikita Popov
2021-04-09 21:12:16 +02:00
parent dc402cb0fc
commit cbf3240d91

View File

@@ -2322,7 +2322,7 @@ int php_module_startup(sapi_module_struct *sf, zend_module_entry *additional_mod
/* Don't leak errors from startup into the per-request phase. */
clear_last_error();
shutdown_memory_manager(!PG(report_memleaks), 0);
shutdown_memory_manager(!PG(report_memleaks) || CG(unclean_shutdown), 0);
virtual_cwd_activate();
zend_interned_strings_switch_storage(1);