Skip to content

Commit d1cb548

Browse files
committed
now this thing really works!
1 parent 719b45a commit d1cb548

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

sapi/fpm/fpm/fpm_main.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1774,6 +1774,15 @@ consult the installation file that came with this distribution, or visit \n\
17741774

17751775
fpm_request_info();
17761776

1777+
/* request startup only after we've done all we can to
1778+
* get path_translated */
1779+
if (php_request_startup(TSRMLS_C) == FAILURE) {
1780+
fcgi_finish_request(&request, 1);
1781+
SG(server_context) = NULL;
1782+
php_module_shutdown(TSRMLS_C);
1783+
return FAILURE;
1784+
}
1785+
17771786
if (SG(request_info).path_translated) {
17781787
if (php_fopen_primary_script(&file_handle TSRMLS_CC) == FAILURE) {
17791788
zend_try {

0 commit comments

Comments
 (0)