mirror of
https://github.com/bdnugget/php-src.git
synced 2026-11-07 09:17:29 +00:00
Don't report leak on unclean_shutdown during startup
In particular if an invalid ini option is specified.
This commit is contained in:
1 parent
dc402cb0fc
commit
cbf3240d91
1 file changed
+1
-1
+1
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user