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 | 3396a6d18522f26d315e2ee59c130d02e2ae14b2 (patch) | |
tree | 9e8ae1b64af6991d4a573d97545e4aa50b7a8032 /sapi/cli/php_cli.c | |
parent | cb6bf19bfaff871c10dbccc5e8149f89d99983d3 (diff) | |
download | php-git-3396a6d18522f26d315e2ee59c130d02e2ae14b2.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.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sapi/cli/php_cli.c b/sapi/cli/php_cli.c index 8856bf8e6c..c071b4dc65 100644 --- a/sapi/cli/php_cli.c +++ b/sapi/cli/php_cli.c @@ -652,8 +652,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); } |