From: Shane Caraveo Date: Sun, 25 May 2003 19:22:25 +0000 (+0000) Subject: http://bugs.php.net/bug.php?id=14409 X-Git-Tag: php-4.3.2RC4~14 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=653717b72cf92ad41acafb63e0d6c3098ebe3dfa;p=php http://bugs.php.net/bug.php?id=14409 in the shell, if we get a filename on the commandline, never use stdin. This fixes '\>php nonexistent.php' will MTH once I get 5 building properly --- diff --git a/sapi/cgi/cgi_main.c b/sapi/cgi/cgi_main.c index 16b4b136c0..a652c2f3ec 100644 --- a/sapi/cgi/cgi_main.c +++ b/sapi/cgi/cgi_main.c @@ -1427,7 +1427,7 @@ consult the installation file that came with this distribution, or visit \n\ rely on the web server giving us the info we need in the environment. */ - if (cgi + if (SG(request_info).path_translated || cgi #if PHP_FASTCGI || fastcgi #endif