summaryrefslogtreecommitdiff
path: root/sapi/cgi/cgi_main.c
diff options
context:
space:
mode:
authorStanislav Malyshev <stas@php.net>2009-10-16 23:34:31 +0000
committerStanislav Malyshev <stas@php.net>2009-10-16 23:34:31 +0000
commita226082475822f57caf32e5e51fef681cca9d364 (patch)
tree47508b1ddaa4157ef8970e066c932470a01b34cb /sapi/cgi/cgi_main.c
parent3eeaf566e0cc51e6ee7f48f202b5dcc5cffd6472 (diff)
downloadphp-git-a226082475822f57caf32e5e51fef681cca9d364.tar.gz
improve fix for #49767 and #47627 - make PHP report
"no script" on 404 again
Diffstat (limited to 'sapi/cgi/cgi_main.c')
-rw-r--r--sapi/cgi/cgi_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sapi/cgi/cgi_main.c b/sapi/cgi/cgi_main.c
index 80110dd83f..f78cc484aa 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;