This repository has been archived on 2025-01-19. You can view files and clone it, but cannot push or open issues or pull requests.
drupalcampbristol/vendor/nikic/php-parser/test/code/parser/stmt/haltCompiler.test
2018-11-23 12:29:20 +00:00

61 lines
846 B
Plaintext

__halt_compiler
-----
<?php
$a;
__halt_compiler()
?>
Hallo World!
-----
array(
0: Stmt_Expression(
expr: Expr_Variable(
name: a
)
)
1: Stmt_HaltCompiler(
remaining: Hallo World!
)
)
-----
<?php
$a;
__halt_compiler();Hallo World!
-----
array(
0: Stmt_Expression(
expr: Expr_Variable(
name: a
)
)
1: Stmt_HaltCompiler(
remaining: Hallo World!
)
)
-----
<?php
namespace A;
$a;
__halt_compiler();
-----
array(
0: Stmt_Namespace(
name: Name(
parts: array(
0: A
)
)
stmts: array(
0: Stmt_Expression(
expr: Expr_Variable(
name: a
)
)
)
)
1: Stmt_HaltCompiler(
remaining:
)
)