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(
|
|
|
|
0: Expr_StaticPropertyFetch(
|
|
|
|
class: Name(
|
|
|
|
parts: array(
|
|
|
|
0: A
|
|
|
|
)
|
2016-03-09 18:57:16 +01:00
|
|
|
comments: array(
|
|
|
|
0: // property name variations
|
|
|
|
)
|
2011-12-07 18:17:05 +01:00
|
|
|
)
|
|
|
|
name: b
|
2016-03-09 18:57:16 +01:00
|
|
|
comments: array(
|
|
|
|
0: // property name variations
|
|
|
|
)
|
2011-12-07 18:17:05 +01:00
|
|
|
)
|
|
|
|
1: Expr_StaticPropertyFetch(
|
|
|
|
class: Name(
|
|
|
|
parts: array(
|
|
|
|
0: A
|
|
|
|
)
|
|
|
|
)
|
|
|
|
name: Expr_Variable(
|
|
|
|
name: b
|
|
|
|
)
|
|
|
|
)
|
|
|
|
2: Expr_StaticPropertyFetch(
|
|
|
|
class: Name(
|
|
|
|
parts: array(
|
|
|
|
0: A
|
|
|
|
)
|
|
|
|
)
|
|
|
|
name: Scalar_String(
|
|
|
|
value: b
|
|
|
|
)
|
|
|
|
)
|
|
|
|
3: Expr_ArrayDimFetch(
|
|
|
|
var: Expr_StaticPropertyFetch(
|
|
|
|
class: Name(
|
|
|
|
parts: array(
|
|
|
|
0: A
|
|
|
|
)
|
2016-03-09 18:57:16 +01:00
|
|
|
comments: array(
|
|
|
|
0: // array access
|
|
|
|
)
|
2011-12-07 18:17:05 +01:00
|
|
|
)
|
|
|
|
name: b
|
2016-03-09 18:57:16 +01:00
|
|
|
comments: array(
|
|
|
|
0: // array access
|
|
|
|
)
|
2011-12-07 18:17:05 +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
|
|
|
)
|
|
|
|
4: Expr_ArrayDimFetch(
|
|
|
|
var: Expr_StaticPropertyFetch(
|
|
|
|
class: Name(
|
|
|
|
parts: array(
|
|
|
|
0: A
|
|
|
|
)
|
|
|
|
)
|
|
|
|
name: b
|
|
|
|
)
|
|
|
|
dim: Scalar_String(
|
|
|
|
value: c
|
|
|
|
)
|
|
|
|
)
|
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
|
|
|
)
|