summaryrefslogtreecommitdiff
path: root/sapi/cgi/cgi_main.c
diff options
context:
space:
mode:
authorShane Caraveo <shane@php.net>2003-05-25 19:22:25 +0000
committerShane Caraveo <shane@php.net>2003-05-25 19:22:25 +0000
commit653717b72cf92ad41acafb63e0d6c3098ebe3dfa (patch)
tree8f93470dbd6bd462bad92f367ecf58b939cd6696 /sapi/cgi/cgi_main.c
parent67ebb942b66cadbcf770bcb0d4f203efe177ac18 (diff)
downloadphp-git-653717b72cf92ad41acafb63e0d6c3098ebe3dfa.tar.gz
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
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 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