From: Stanislav Malyshev Date: Fri, 16 Oct 2009 23:34:31 +0000 (+0000) Subject: improve fix for #49767 and #47627 - make PHP report X-Git-Tag: php-5.4.0alpha1~191^2~2501 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7394d5bb6b1661f89836a39a4887ae6c1b00cb23;p=php improve fix for #49767 and #47627 - make PHP report "no script" on 404 again --- diff --git a/sapi/cgi/cgi_main.c b/sapi/cgi/cgi_main.c index f71f2606d3..8075170938 100644 --- a/sapi/cgi/cgi_main.c +++ b/sapi/cgi/cgi_main.c @@ -2031,7 +2031,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;