diff options
author | Stanislav Malyshev <stas@php.net> | 2009-10-16 23:34:31 (GMT) |
---|---|---|
committer | Stanislav Malyshev <stas@php.net> | 2009-10-16 23:34:31 (GMT) |
commit | a226082475822f57caf32e5e51fef681cca9d364 (patch) | |
tree | 47508b1ddaa4157ef8970e066c932470a01b34cb /sapi | |
parent | 3eeaf566e0cc51e6ee7f48f202b5dcc5cffd6472 (diff) | |
download | php-a226082475822f57caf32e5e51fef681cca9d364.tar.gz |
improve fix for #49767 and #47627 - make PHP report
"no script" on 404 again
Diffstat (limited to 'sapi')
-rw-r--r-- | sapi/cgi/cgi_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sapi/cgi/cgi_main.c b/sapi/cgi/cgi_main.c index 80110dd..f78cc48 100644 --- a/sapi/cgi/cgi_main.c +++ b/sapi/cgi/cgi_main.c @@ -2038,7 +2038,7 @@ consult the installation file that came with this distribution, or visit \n\ 1. we are running from shell and got filename was there 2. we are running as cgi or fastcgi */ - if (cgi || SG(request_info).path_translated) { + if (cgi || fastcgi || SG(request_info).path_translated) { if (php_fopen_primary_script(&file_handle TSRMLS_CC) == FAILURE) { if (errno == EACCES) { SG(sapi_headers).http_response_code = 403; |