diff options
| author | Felipe Pena <felipe@php.net> | 2010-06-27 21:46:16 +0000 |
|---|---|---|
| committer | Felipe Pena <felipe@php.net> | 2010-06-27 21:46:16 +0000 |
| commit | 9b07568c437b081231dcf2b9857c85fa13edfe67 (patch) | |
| tree | 88c57ed788e9468fd4ddc79bcdea6183398df9d7 /sapi/cgi/cgi_main.c | |
| parent | 0cc45e7bdb02d9eef59aafbd4733541d3824aff3 (diff) | |
| download | php-git-9b07568c437b081231dcf2b9857c85fa13edfe67.tar.gz | |
- Fixed bug #48930 (__COMPILER_HALT_OFFSET__ incorrect in PHP >= 5.3)
Diffstat (limited to 'sapi/cgi/cgi_main.c')
| -rw-r--r-- | sapi/cgi/cgi_main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sapi/cgi/cgi_main.c b/sapi/cgi/cgi_main.c index da8fed108f..09c5b1fd1d 100644 --- a/sapi/cgi/cgi_main.c +++ b/sapi/cgi/cgi_main.c @@ -2098,8 +2098,10 @@ consult the installation file that came with this distribution, or visit \n\ fseek(file_handle.handle.fp, pos - 1, SEEK_SET); } } + CG(shebang_len) = ftell(file_handle.handle.fp); CG(start_lineno) = 2; } else { + CG(shebang_len) = 0; rewind(file_handle.handle.fp); } } |
