summaryrefslogtreecommitdiff
path: root/sapi/cli/php_cli.c
diff options
context:
space:
mode:
authorFelipe Pena <felipe@php.net>2010-06-27 21:46:16 +0000
committerFelipe Pena <felipe@php.net>2010-06-27 21:46:16 +0000
commit9b07568c437b081231dcf2b9857c85fa13edfe67 (patch)
tree88c57ed788e9468fd4ddc79bcdea6183398df9d7 /sapi/cli/php_cli.c
parent0cc45e7bdb02d9eef59aafbd4733541d3824aff3 (diff)
downloadphp-git-9b07568c437b081231dcf2b9857c85fa13edfe67.tar.gz
- Fixed bug #48930 (__COMPILER_HALT_OFFSET__ incorrect in PHP >= 5.3)
Diffstat (limited to 'sapi/cli/php_cli.c')
-rw-r--r--sapi/cli/php_cli.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sapi/cli/php_cli.c b/sapi/cli/php_cli.c
index 635445e92f..cf2d2d5582 100644
--- a/sapi/cli/php_cli.c
+++ b/sapi/cli/php_cli.c
@@ -627,8 +627,10 @@ static int cli_seek_file_begin(zend_file_handle *file_handle, char *script_file,
fseek(file_handle->handle.fp, pos - 1, SEEK_SET);
}
}
+ CG(shebang_len) = ftell(file_handle->handle.fp);
*lineno = 2;
} else {
+ CG(shebang_len) = 0;
rewind(file_handle->handle.fp);
}