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

Don't enable rc_debug mode if module startup fails

This commit is contained in:
Nikita Popov
2021-07-21 09:13:52 +02:00
parent ae8647d9d3
commit 1da5df8029

View File

@@ -2349,7 +2349,9 @@ int php_module_startup(sapi_module_struct *sf, zend_module_entry *additional_mod
zend_interned_strings_switch_storage(1);
#if ZEND_RC_DEBUG
zend_rc_debug = 1;
if (retval == SUCCESS) {
zend_rc_debug = 1;
}
#endif
/* we're done */