summaryrefslogtreecommitdiff
path: root/sapi/fpm/fpm/fpm_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'sapi/fpm/fpm/fpm_main.c')
-rw-r--r--sapi/fpm/fpm/fpm_main.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/sapi/fpm/fpm/fpm_main.c b/sapi/fpm/fpm/fpm_main.c
index 82ef4e7bde..024ac14c13 100644
--- a/sapi/fpm/fpm/fpm_main.c
+++ b/sapi/fpm/fpm/fpm_main.c
@@ -1774,6 +1774,15 @@ consult the installation file that came with this distribution, or visit \n\
fpm_request_info();
+ /* request startup only after we've done all we can to
+ * get path_translated */
+ if (php_request_startup(TSRMLS_C) == FAILURE) {
+ fcgi_finish_request(&request, 1);
+ SG(server_context) = NULL;
+ php_module_shutdown(TSRMLS_C);
+ return FAILURE;
+ }
+
if (SG(request_info).path_translated) {
if (php_fopen_primary_script(&file_handle TSRMLS_CC) == FAILURE) {
zend_try {