cvs: php4 /sapi/cgi cgi_main.c
| From: | Edin Kadribasic | Date: | Sun, 20 Jan 2002 23:58:38 +0000 |
| Subject: | cvs: php4 /sapi/cgi cgi_main.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-9117@lists.php.net to get a copy of this message | ||
edink Sun Jan 20 18:58:38 2002 EDT
Modified files:
/php4/sapi/cgi cgi_main.c
Log:
Fixed bug #9041 and others in the same class (patch by pete.lee@ubs.com)
Index: php4/sapi/cgi/cgi_main.c
diff -u php4/sapi/cgi/cgi_main.c:1.141 php4/sapi/cgi/cgi_main.c:1.142
--- php4/sapi/cgi/cgi_main.c:1.141 Fri Jan 18 15:27:09 2002
+++ php4/sapi/cgi/cgi_main.c Sun Jan 20 18:58:37 2002
@@ -740,7 +740,9 @@
}
file_handle.filename = argv0;
file_handle.opened_path = expand_filepath(argv0, NULL TSRMLS_CC);
- } else if (retval == SUCCESS) {
+ }
+
+ if (file_handle.handle.fp && (file_handle.handle.fp != stdin)) {
/* #!php support */
c = fgetc(file_handle.handle.fp);
if (c == '#') {