From 22e2302e787e9b876f87effd21ff36c41e77d707 Mon Sep 17 00:00:00 2001 From: Felipe Pena Date: Sun, 27 Jun 2010 22:13:41 +0000 Subject: - Improved initialization --- sapi/cgi/cgi_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sapi/cgi/cgi_main.c') diff --git a/sapi/cgi/cgi_main.c b/sapi/cgi/cgi_main.c index e5d3dba575..ab6e5edff7 100644 --- a/sapi/cgi/cgi_main.c +++ b/sapi/cgi/cgi_main.c @@ -2079,6 +2079,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); @@ -2096,7 +2097,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); } } -- cgit v1.2.1