cvs: php4(PHP_4_3) /sapi/cgi cgi_main.c
| From: | Shane Caraveo | Date: | Mon, 10 Mar 2003 02:36:00 +0000 |
| Subject: | cvs: php4(PHP_4_3) /sapi/cgi cgi_main.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-19479@lists.php.net to get a copy of this message | ||
shane Sun Mar 9 21:36:00 2003 EDT
Modified files: (Branch: PHP_4_3)
/php4/sapi/cgi cgi_main.c
Log:
fix using stdin. This was already fixed in php5.
Index: php4/sapi/cgi/cgi_main.c
diff -u php4/sapi/cgi/cgi_main.c:1.190.2.17 php4/sapi/cgi/cgi_main.c:1.190.2.18
--- php4/sapi/cgi/cgi_main.c:1.190.2.17 Sun Mar 9 21:17:06 2003
+++ php4/sapi/cgi/cgi_main.c Sun Mar 9 21:35:59 2003
@@ -20,7 +20,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: cgi_main.c,v 1.190.2.17 2003/03/10 02:17:06 sniper Exp $ */
+/* $Id: cgi_main.c,v 1.190.2.18 2003/03/10 02:35:59 shane Exp $ */
#include "php.h"
#include "php_globals.h"
@@ -1447,7 +1447,7 @@
if we are unable to open path_translated and we are not
running from shell (so fp == NULL), then fail.
*/
- if (retval == FAILURE || file_handle.handle.fp == NULL) {
+ if (retval == FAILURE && file_handle.handle.fp == NULL) {
SG(sapi_headers).http_response_code = 404;
PUTS("No input file specified.\n");
php_request_shutdown((void *) 0);