diff --git a/main/main.c b/main/main.c index 33fa6cea60f..0f56ef3d930 100644 --- a/main/main.c +++ b/main/main.c @@ -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 */