Skip to content

Commit ea2e678

Browse files
committed
Stop Apache if PHP wasn't started successful.
1 parent 7a5416b commit ea2e678

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sapi/apache2handler/sapi_apache2.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,9 @@ php_apache_server_startup(apr_pool_t *pconf, apr_pool_t *plog, apr_pool_t *ptemp
482482
zend_signal_startup();
483483

484484
sapi_startup(&apache2_sapi_module);
485-
apache2_sapi_module.startup(&apache2_sapi_module);
485+
if (apache2_sapi_module.startup(&apache2_sapi_module) != SUCCESS) {
486+
return DONE;
487+
}
486488
apr_pool_cleanup_register(pconf, NULL, php_apache_server_shutdown, apr_pool_cleanup_null);
487489
php_apache_add_version(pconf);
488490

0 commit comments

Comments
 (0)