Skip to content

Commit 1da5df8

Browse files
committed
Don't enable rc_debug mode if module startup fails
1 parent ae8647d commit 1da5df8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

main/main.c

+3-1
Original file line numberDiff line numberDiff line change
@@ -2349,7 +2349,9 @@ int php_module_startup(sapi_module_struct *sf, zend_module_entry *additional_mod
23492349
zend_interned_strings_switch_storage(1);
23502350

23512351
#if ZEND_RC_DEBUG
2352-
zend_rc_debug = 1;
2352+
if (retval == SUCCESS) {
2353+
zend_rc_debug = 1;
2354+
}
23532355
#endif
23542356

23552357
/* we're done */

0 commit comments

Comments
 (0)