diff options
Diffstat (limited to 'sapi/cgi/cgi_main.c')
-rw-r--r-- | sapi/cgi/cgi_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sapi/cgi/cgi_main.c b/sapi/cgi/cgi_main.c index 09c5b1fd1d..e7b9874591 100644 --- a/sapi/cgi/cgi_main.c +++ b/sapi/cgi/cgi_main.c @@ -2084,6 +2084,7 @@ consult the installation file that came with this distribution, or visit \n\ } } + CG(shebang_len) = 0; if (CGIG(check_shebang_line) && file_handle.handle.fp && (file_handle.handle.fp != stdin)) { /* #!php support */ c = fgetc(file_handle.handle.fp); @@ -2101,7 +2102,6 @@ consult the installation file that came with this distribution, or visit \n\ CG(shebang_len) = ftell(file_handle.handle.fp); CG(start_lineno) = 2; } else { - CG(shebang_len) = 0; rewind(file_handle.handle.fp); } } |