Skip to content

Commit

Permalink
Don't enable rc_debug mode if module startup fails
Browse files Browse the repository at this point in the history
  • Loading branch information
nikic committed Jul 21, 2021
1 parent ae8647d commit 1da5df8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion main/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 1da5df8

Please sign in to comment.