diff options
author | Edin Kadribasic <edink@php.net> | 2002-01-20 23:58:37 +0000 |
---|---|---|
committer | Edin Kadribasic <edink@php.net> | 2002-01-20 23:58:37 +0000 |
commit | 1769e3fcdc1c0338cbd0c422e04fbea62e541e48 (patch) | |
tree | 9df80f6c393ec630afab13c2f0b587c62656aba7 /sapi/cgi/cgi_main.c | |
parent | 2131b019c74272faf484f2e2b3390b87f5ba9bd3 (diff) | |
download | php-git-1769e3fcdc1c0338cbd0c422e04fbea62e541e48.tar.gz |
Fixed bug #9041 and others in the same class (patch by pete.lee@ubs.com)
Diffstat (limited to 'sapi/cgi/cgi_main.c')
-rw-r--r-- | sapi/cgi/cgi_main.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sapi/cgi/cgi_main.c b/sapi/cgi/cgi_main.c index 1226d1108d..e2a1d96cf9 100644 --- a/sapi/cgi/cgi_main.c +++ b/sapi/cgi/cgi_main.c @@ -740,7 +740,9 @@ any .htaccess restrictions anywhere on your site you can leave doc_root undefine } 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 == '#') { |