Skip to content

Commit 9b07568

Browse files
committed
- Fixed bug #48930 (__COMPILER_HALT_OFFSET__ incorrect in PHP >= 5.3)
1 parent 0cc45e7 commit 9b07568

File tree

7 files changed

+359
-335
lines changed

7 files changed

+359
-335
lines changed

NEWS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ PHP NEWS
1717
(Andrey)
1818
- Fixed bug #51421 (Abstract __construct constructor argument list not
1919
enforced). (Felipe)
20+
- Fixed bug #48930 (__COMPILER_HALT_OFFSET__ incorrect in PHP >= 5.3). (Felipe)
2021

2122
17 Jun 2010, PHP 5.3.3 RC1
2223
- Upgraded bundled sqlite to version 3.6.23.1. (Ilia)

Zend/tests/bug48930.phpt

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
--TEST--
2+
Bug #48930 (__COMPILER_HALT_OFFSET__ incorrect in PHP>=5.3)
3+
--FILE--
4+
#!php
5+
<?php
6+
7+
/*
8+
* Test
9+
*/
10+
printf("__COMPILER_HALT_OFFSET__ is %d\n",__COMPILER_HALT_OFFSET__);
11+
12+
__halt_compiler();
13+
14+
?>
15+
--EXPECT--
16+
__COMPILER_HALT_OFFSET__ is 116

Zend/zend_globals.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ struct _zend_compiler_globals {
8888
char *compiled_filename;
8989

9090
int zend_lineno;
91+
int shebang_len;
9192

9293
char *heredoc;
9394
int heredoc_len;

0 commit comments

Comments
 (0)