2011-12-07 18:17:05 +01:00
|
|
|
Static property fetches
|
|
|
|
-----
|
|
|
|
<?php
|
|
|
|
|
|
|
|
// property name variations
|
|
|
|
A::$b;
|
|
|
|
A::$$b;
|
|
|
|
A::${'b'};
|
|
|
|
|
|
|
|
// array access
|
|
|
|
A::$b['c'];
|
|
|
|
A::$b{'c'};
|
|
|
|
|
|
|
|
// class name variations can be found in staticCall.test
|
|
|
|
-----
|
|
|
|
array(
|
2017-01-19 22:25:22 +01:00
|
|
|
0: Stmt_Expression(
|
|
|
|
expr: Expr_StaticPropertyFetch(
|
|
|
|
class: Name(
|
|
|
|
parts: array(
|
|
|
|
0: A
|
|
|
|
)
|
|
|
|
comments: array(
|
|
|
|
0: // property name variations
|
|
|
|
)
|
2011-12-07 18:17:05 +01:00
|
|
|
)
|
2017-04-28 19:09:39 +02:00
|
|
|
name: VarLikeIdentifier(
|
|
|
|
name: b
|
|
|
|
)
|
2016-03-09 18:57:16 +01:00
|
|
|
comments: array(
|
|
|
|
0: // property name variations
|
|
|
|
)
|
2011-12-07 18:17:05 +01:00
|
|
|
)
|
2016-03-09 18:57:16 +01:00
|
|
|
comments: array(
|
|
|
|
0: // property name variations
|
|
|
|
)
|
2011-12-07 18:17:05 +01:00
|
|
|
)
|
2017-01-19 22:25:22 +01:00
|
|
|
1: Stmt_Expression(
|
|
|
|
expr: Expr_StaticPropertyFetch(
|
|
|
|
class: Name(
|
|
|
|
parts: array(
|
|
|
|
0: A
|
|
|
|
)
|
2011-12-07 18:17:05 +01:00
|
|
|
)
|
2017-01-19 22:25:22 +01:00
|
|
|
name: Expr_Variable(
|
|
|
|
name: b
|
2011-12-07 18:17:05 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2017-01-19 22:25:22 +01:00
|
|
|
2: Stmt_Expression(
|
|
|
|
expr: Expr_StaticPropertyFetch(
|
2011-12-07 18:17:05 +01:00
|
|
|
class: Name(
|
|
|
|
parts: array(
|
|
|
|
0: A
|
|
|
|
)
|
2017-01-19 22:25:22 +01:00
|
|
|
)
|
|
|
|
name: Scalar_String(
|
|
|
|
value: b
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
3: Stmt_Expression(
|
|
|
|
expr: Expr_ArrayDimFetch(
|
|
|
|
var: Expr_StaticPropertyFetch(
|
|
|
|
class: Name(
|
|
|
|
parts: array(
|
|
|
|
0: A
|
|
|
|
)
|
|
|
|
comments: array(
|
|
|
|
0: // array access
|
|
|
|
)
|
|
|
|
)
|
2017-04-28 19:09:39 +02:00
|
|
|
name: VarLikeIdentifier(
|
|
|
|
name: b
|
|
|
|
)
|
2016-03-09 18:57:16 +01:00
|
|
|
comments: array(
|
|
|
|
0: // array access
|
|
|
|
)
|
2011-12-07 18:17:05 +01:00
|
|
|
)
|
2017-01-19 22:25:22 +01:00
|
|
|
dim: Scalar_String(
|
|
|
|
value: c
|
|
|
|
)
|
2016-03-09 18:57:16 +01:00
|
|
|
comments: array(
|
|
|
|
0: // array access
|
|
|
|
)
|
2011-12-07 18:17:05 +01:00
|
|
|
)
|
2016-03-09 18:57:16 +01:00
|
|
|
comments: array(
|
|
|
|
0: // array access
|
|
|
|
)
|
2011-12-07 18:17:05 +01:00
|
|
|
)
|
2017-01-19 22:25:22 +01:00
|
|
|
4: Stmt_Expression(
|
|
|
|
expr: Expr_ArrayDimFetch(
|
|
|
|
var: Expr_StaticPropertyFetch(
|
|
|
|
class: Name(
|
|
|
|
parts: array(
|
|
|
|
0: A
|
|
|
|
)
|
2011-12-07 18:17:05 +01:00
|
|
|
)
|
2017-04-28 19:09:39 +02:00
|
|
|
name: VarLikeIdentifier(
|
|
|
|
name: b
|
|
|
|
)
|
2017-01-19 22:25:22 +01:00
|
|
|
)
|
|
|
|
dim: Scalar_String(
|
|
|
|
value: c
|
2011-12-07 18:17:05 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2015-10-02 11:03:12 +02:00
|
|
|
5: Stmt_Nop(
|
|
|
|
comments: array(
|
|
|
|
0: // class name variations can be found in staticCall.test
|
|
|
|
)
|
|
|
|
)
|
2011-12-07 18:17:05 +01:00
|
|
|
)
|