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);
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php