cvs: php4(PHP_4_3) /sapi/cgi cgi_main.c
| From: | Shane Caraveo | Date: | Sun, 25 May 2003 19:22:25 +0000 |
| Subject: | cvs: php4(PHP_4_3) /sapi/cgi cgi_main.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-21256@lists.php.net to get a copy of this message | ||
shane Sun May 25 15:22:25 2003 EDT
Modified files: (Branch: PHP_4_3)
/php4/sapi/cgi cgi_main.c
Log:
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
Index: php4/sapi/cgi/cgi_main.c
diff -u php4/sapi/cgi/cgi_main.c:1.190.2.30 php4/sapi/cgi/cgi_main.c:1.190.2.31
--- php4/sapi/cgi/cgi_main.c:1.190.2.30 Sun May 25 14:35:18 2003
+++ php4/sapi/cgi/cgi_main.c Sun May 25 15:22:25 2003
@@ -20,7 +20,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: cgi_main.c,v 1.190.2.30 2003/05/25 18:35:18 shane Exp $ */
+/* $Id: cgi_main.c,v 1.190.2.31 2003/05/25 19:22:25 shane Exp $ */
#include "php.h"
#include "php_globals.h"
@@ -1427,7 +1427,7 @@
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