2011-12-04 16:52:43 +01:00
|
|
|
Static calls
|
|
|
|
-----
|
|
|
|
<?php
|
|
|
|
|
|
|
|
// method name variations
|
|
|
|
A::b();
|
|
|
|
A::{'b'}();
|
|
|
|
A::$b();
|
|
|
|
A::$b['c']();
|
|
|
|
A::$b['c']['d']();
|
|
|
|
|
|
|
|
// array dereferencing
|
|
|
|
A::b()['c'];
|
|
|
|
|
|
|
|
// class name variations
|
|
|
|
static::b();
|
|
|
|
$a::b();
|
|
|
|
${'a'}::b();
|
|
|
|
$a['b']::c();
|
|
|
|
-----
|
2015-06-13 14:59:24 +02:00
|
|
|
!!php5
|
2011-12-04 16:52:43 +01:00
|
|
|
array(
|
2017-01-19 22:25:22 +01:00
|
|
|
0: Stmt_Expression(
|
|
|
|
expr: Expr_StaticCall(
|
|
|
|
class: Name(
|
|
|
|
parts: array(
|
|
|
|
0: A
|
|
|
|
)
|
|
|
|
comments: array(
|
|
|
|
0: // method name variations
|
|
|
|
)
|
|
|
|
)
|
2017-04-28 19:09:39 +02:00
|
|
|
name: Identifier(
|
|
|
|
name: b
|
|
|
|
)
|
2017-01-19 22:25:22 +01:00
|
|
|
args: array(
|
2011-12-04 16:52:43 +01:00
|
|
|
)
|
2016-03-09 18:57:16 +01:00
|
|
|
comments: array(
|
|
|
|
0: // method name variations
|
|
|
|
)
|
2011-12-04 16:52:43 +01:00
|
|
|
)
|
2016-03-09 18:57:16 +01:00
|
|
|
comments: array(
|
|
|
|
0: // method name variations
|
|
|
|
)
|
2011-12-04 16:52:43 +01:00
|
|
|
)
|
2017-01-19 22:25:22 +01:00
|
|
|
1: Stmt_Expression(
|
|
|
|
expr: Expr_StaticCall(
|
|
|
|
class: Name(
|
|
|
|
parts: array(
|
|
|
|
0: A
|
|
|
|
)
|
2011-12-04 16:52:43 +01:00
|
|
|
)
|
2017-01-19 22:25:22 +01:00
|
|
|
name: Scalar_String(
|
|
|
|
value: b
|
|
|
|
)
|
|
|
|
args: array(
|
2011-12-04 16:52:43 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2017-01-19 22:25:22 +01:00
|
|
|
2: Stmt_Expression(
|
|
|
|
expr: Expr_StaticCall(
|
|
|
|
class: Name(
|
|
|
|
parts: array(
|
|
|
|
0: A
|
|
|
|
)
|
2011-12-04 16:52:43 +01:00
|
|
|
)
|
2017-01-19 22:25:22 +01:00
|
|
|
name: Expr_Variable(
|
2017-11-11 12:23:14 +01:00
|
|
|
name: b
|
2011-12-04 16:52:43 +01:00
|
|
|
)
|
2017-01-19 22:25:22 +01:00
|
|
|
args: array(
|
2011-12-04 16:52:43 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2017-01-19 22:25:22 +01:00
|
|
|
3: Stmt_Expression(
|
|
|
|
expr: Expr_StaticCall(
|
|
|
|
class: Name(
|
|
|
|
parts: array(
|
|
|
|
0: A
|
|
|
|
)
|
2011-12-04 16:52:43 +01:00
|
|
|
)
|
2017-01-19 22:25:22 +01:00
|
|
|
name: Expr_ArrayDimFetch(
|
2011-12-04 16:52:43 +01:00
|
|
|
var: Expr_Variable(
|
2017-11-11 12:23:14 +01:00
|
|
|
name: b
|
2011-12-04 16:52:43 +01:00
|
|
|
)
|
|
|
|
dim: Scalar_String(
|
|
|
|
value: c
|
|
|
|
)
|
|
|
|
)
|
2017-01-19 22:25:22 +01:00
|
|
|
args: array(
|
2011-12-04 16:52:43 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2017-01-19 22:25:22 +01:00
|
|
|
4: Stmt_Expression(
|
|
|
|
expr: Expr_StaticCall(
|
2011-12-04 16:52:43 +01:00
|
|
|
class: Name(
|
|
|
|
parts: array(
|
|
|
|
0: A
|
|
|
|
)
|
2017-01-19 22:25:22 +01:00
|
|
|
)
|
|
|
|
name: Expr_ArrayDimFetch(
|
|
|
|
var: Expr_ArrayDimFetch(
|
|
|
|
var: Expr_Variable(
|
2017-11-11 12:23:14 +01:00
|
|
|
name: b
|
2017-01-19 22:25:22 +01:00
|
|
|
)
|
|
|
|
dim: Scalar_String(
|
|
|
|
value: c
|
|
|
|
)
|
|
|
|
)
|
|
|
|
dim: Scalar_String(
|
|
|
|
value: d
|
|
|
|
)
|
|
|
|
)
|
|
|
|
args: array(
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
5: Stmt_Expression(
|
|
|
|
expr: Expr_ArrayDimFetch(
|
|
|
|
var: Expr_StaticCall(
|
|
|
|
class: Name(
|
|
|
|
parts: array(
|
|
|
|
0: A
|
|
|
|
)
|
|
|
|
comments: array(
|
|
|
|
0: // array dereferencing
|
|
|
|
)
|
|
|
|
)
|
2017-04-28 19:09:39 +02:00
|
|
|
name: Identifier(
|
|
|
|
name: b
|
|
|
|
)
|
2017-01-19 22:25:22 +01:00
|
|
|
args: array(
|
|
|
|
)
|
2016-03-09 18:57:16 +01:00
|
|
|
comments: array(
|
|
|
|
0: // array dereferencing
|
|
|
|
)
|
2011-12-04 16:52:43 +01:00
|
|
|
)
|
2017-01-19 22:25:22 +01:00
|
|
|
dim: Scalar_String(
|
|
|
|
value: c
|
2011-12-04 16:52:43 +01:00
|
|
|
)
|
2016-03-09 18:57:16 +01:00
|
|
|
comments: array(
|
|
|
|
0: // array dereferencing
|
|
|
|
)
|
2011-12-04 16:52:43 +01:00
|
|
|
)
|
2016-03-09 18:57:16 +01:00
|
|
|
comments: array(
|
|
|
|
0: // array dereferencing
|
|
|
|
)
|
2011-12-04 16:52:43 +01:00
|
|
|
)
|
2017-01-19 22:25:22 +01:00
|
|
|
6: Stmt_Expression(
|
|
|
|
expr: Expr_StaticCall(
|
|
|
|
class: Name(
|
|
|
|
parts: array(
|
|
|
|
0: static
|
|
|
|
)
|
|
|
|
comments: array(
|
|
|
|
0: // class name variations
|
|
|
|
)
|
|
|
|
)
|
2017-04-28 19:09:39 +02:00
|
|
|
name: Identifier(
|
|
|
|
name: b
|
|
|
|
)
|
2017-01-19 22:25:22 +01:00
|
|
|
args: array(
|
2011-12-04 16:52:43 +01:00
|
|
|
)
|
2016-03-09 18:57:16 +01:00
|
|
|
comments: array(
|
|
|
|
0: // class name variations
|
|
|
|
)
|
2011-12-04 16:52:43 +01:00
|
|
|
)
|
2016-03-09 18:57:16 +01:00
|
|
|
comments: array(
|
|
|
|
0: // class name variations
|
|
|
|
)
|
2011-12-04 16:52:43 +01:00
|
|
|
)
|
2017-01-19 22:25:22 +01:00
|
|
|
7: Stmt_Expression(
|
|
|
|
expr: Expr_StaticCall(
|
|
|
|
class: Expr_Variable(
|
|
|
|
name: a
|
|
|
|
)
|
2017-04-28 19:09:39 +02:00
|
|
|
name: Identifier(
|
|
|
|
name: b
|
|
|
|
)
|
2017-01-19 22:25:22 +01:00
|
|
|
args: array(
|
|
|
|
)
|
2011-12-04 16:52:43 +01:00
|
|
|
)
|
|
|
|
)
|
2017-01-19 22:25:22 +01:00
|
|
|
8: Stmt_Expression(
|
|
|
|
expr: Expr_StaticCall(
|
|
|
|
class: Expr_Variable(
|
|
|
|
name: Scalar_String(
|
|
|
|
value: a
|
|
|
|
)
|
|
|
|
)
|
2017-04-28 19:09:39 +02:00
|
|
|
name: Identifier(
|
|
|
|
name: b
|
|
|
|
)
|
2017-01-19 22:25:22 +01:00
|
|
|
args: array(
|
2011-12-04 16:52:43 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2017-01-19 22:25:22 +01:00
|
|
|
9: Stmt_Expression(
|
|
|
|
expr: Expr_StaticCall(
|
|
|
|
class: Expr_ArrayDimFetch(
|
|
|
|
var: Expr_Variable(
|
|
|
|
name: a
|
|
|
|
)
|
|
|
|
dim: Scalar_String(
|
|
|
|
value: b
|
|
|
|
)
|
2011-12-04 16:52:43 +01:00
|
|
|
)
|
2017-04-28 19:09:39 +02:00
|
|
|
name: Identifier(
|
|
|
|
name: c
|
|
|
|
)
|
2017-01-19 22:25:22 +01:00
|
|
|
args: array(
|
2011-12-04 16:52:43 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2016-03-09 18:57:16 +01:00
|
|
|
)
|