mirror of
https://github.com/nikic/PHP-Parser.git
synced 2025-07-25 08:11:22 +02:00
In most circumstances we are interested in the whole string, not the parts split by namespace separator. As names are common, this representation measurably improves memory usage and performance.
25 lines
487 B
Plaintext
25 lines
487 B
Plaintext
Non-simple variables are forbidden in PHP 7
|
|
-----
|
|
<?php
|
|
global $$foo->bar;
|
|
-----
|
|
Syntax error, unexpected T_OBJECT_OPERATOR, expecting ';' from 2:13 to 2:14
|
|
array(
|
|
0: Stmt_Global(
|
|
vars: array(
|
|
0: Expr_Variable(
|
|
name: Expr_Variable(
|
|
name: foo
|
|
)
|
|
)
|
|
)
|
|
)
|
|
1: Stmt_Expression(
|
|
expr: Expr_ConstFetch(
|
|
name: Name(
|
|
name: bar
|
|
)
|
|
)
|
|
)
|
|
)
|