]> granicus.if.org Git - php/commitdiff
http://bugs.php.net/bug.php?id=14409
authorShane Caraveo <shane@php.net>
Sun, 25 May 2003 19:22:25 +0000 (19:22 +0000)
committerShane Caraveo <shane@php.net>
Sun, 25 May 2003 19:22:25 +0000 (19:22 +0000)
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

sapi/cgi/cgi_main.c

index 16b4b136c0ab3ed9e671ed09f423b61818f9e3c2..a652c2f3ec532dd126da3625e201b37fc316bec6 100644 (file)
@@ -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