diff --git a/main/main.c b/main/main.c index 290dba00fe2..2fcd300d9a3 100644 --- a/main/main.c +++ b/main/main.c @@ -2362,12 +2362,12 @@ int php_module_startup(sapi_module_struct *sf, zend_module_entry *additional_mod module->info_func = PHP_MINFO(php_core); } + module_initialized = 1; + if (zend_post_startup() != SUCCESS) { return FAILURE; } - module_initialized = 1; - /* Check for deprecated directives */ /* NOTE: If you add anything here, remember to add it to Makefile.global! */ {