2015-07-04 13:15:48 +02:00
|
|
|
Use of __HALT_COMPILER_OFFSET__ constant
|
|
|
|
-----
|
|
|
|
<?php
|
|
|
|
|
|
|
|
var_dump(__HALT_COMPILER_OFFSET__);
|
|
|
|
__halt_compiler();
|
|
|
|
Foo
|
|
|
|
-----
|
|
|
|
array(
|
2017-01-19 22:25:22 +01:00
|
|
|
0: Stmt_Expression(
|
|
|
|
expr: Expr_FuncCall(
|
|
|
|
name: Name(
|
|
|
|
parts: array(
|
|
|
|
0: var_dump
|
|
|
|
)
|
2015-07-04 13:15:48 +02:00
|
|
|
)
|
2017-01-19 22:25:22 +01:00
|
|
|
args: array(
|
|
|
|
0: Arg(
|
2020-08-09 17:37:31 +02:00
|
|
|
name: null
|
2017-01-19 22:25:22 +01:00
|
|
|
value: Expr_ConstFetch(
|
|
|
|
name: Name(
|
|
|
|
parts: array(
|
|
|
|
0: __HALT_COMPILER_OFFSET__
|
|
|
|
)
|
2015-07-04 13:15:48 +02:00
|
|
|
)
|
|
|
|
)
|
2017-01-19 22:25:22 +01:00
|
|
|
byRef: false
|
|
|
|
unpack: false
|
2015-07-04 13:15:48 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
1: Stmt_HaltCompiler(
|
|
|
|
remaining:
|
|
|
|
Foo
|
|
|
|
)
|
2017-01-19 22:25:22 +01:00
|
|
|
)
|