2011-12-04 16:52:43 +01:00
|
|
|
Arguments
|
|
|
|
-----
|
|
|
|
<?php
|
|
|
|
|
|
|
|
f();
|
|
|
|
f($a);
|
|
|
|
f($a, $b);
|
|
|
|
f(&$a);
|
2014-03-26 18:42:46 +01:00
|
|
|
f($a, ...$b);
|
2011-12-04 16:52:43 +01:00
|
|
|
-----
|
|
|
|
array(
|
2017-01-19 22:25:22 +01:00
|
|
|
0: Stmt_Expression(
|
|
|
|
expr: Expr_FuncCall(
|
|
|
|
name: Name(
|
|
|
|
parts: array(
|
|
|
|
0: f
|
|
|
|
)
|
|
|
|
)
|
|
|
|
args: array(
|
2011-12-04 16:52:43 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2017-01-19 22:25:22 +01:00
|
|
|
1: Stmt_Expression(
|
|
|
|
expr: Expr_FuncCall(
|
|
|
|
name: Name(
|
|
|
|
parts: array(
|
|
|
|
0: f
|
|
|
|
)
|
2011-12-04 16:52:43 +01:00
|
|
|
)
|
2017-01-19 22:25:22 +01:00
|
|
|
args: array(
|
|
|
|
0: Arg(
|
|
|
|
value: Expr_Variable(
|
|
|
|
name: a
|
|
|
|
)
|
|
|
|
byRef: false
|
|
|
|
unpack: false
|
2011-12-04 16:52:43 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2017-01-19 22:25:22 +01:00
|
|
|
2: Stmt_Expression(
|
|
|
|
expr: Expr_FuncCall(
|
|
|
|
name: Name(
|
|
|
|
parts: array(
|
|
|
|
0: f
|
2011-12-04 16:52:43 +01:00
|
|
|
)
|
|
|
|
)
|
2017-01-19 22:25:22 +01:00
|
|
|
args: array(
|
|
|
|
0: Arg(
|
|
|
|
value: Expr_Variable(
|
|
|
|
name: a
|
|
|
|
)
|
|
|
|
byRef: false
|
|
|
|
unpack: false
|
|
|
|
)
|
|
|
|
1: Arg(
|
|
|
|
value: Expr_Variable(
|
|
|
|
name: b
|
|
|
|
)
|
|
|
|
byRef: false
|
|
|
|
unpack: false
|
2011-12-04 16:52:43 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2017-01-19 22:25:22 +01:00
|
|
|
3: Stmt_Expression(
|
|
|
|
expr: Expr_FuncCall(
|
|
|
|
name: Name(
|
|
|
|
parts: array(
|
|
|
|
0: f
|
|
|
|
)
|
2011-12-04 16:52:43 +01:00
|
|
|
)
|
2017-01-19 22:25:22 +01:00
|
|
|
args: array(
|
|
|
|
0: Arg(
|
|
|
|
value: Expr_Variable(
|
|
|
|
name: a
|
|
|
|
)
|
|
|
|
byRef: true
|
|
|
|
unpack: false
|
2011-12-04 16:52:43 +01:00
|
|
|
)
|
2014-03-26 18:42:46 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2017-01-19 22:25:22 +01:00
|
|
|
4: Stmt_Expression(
|
|
|
|
expr: Expr_FuncCall(
|
|
|
|
name: Name(
|
|
|
|
parts: array(
|
|
|
|
0: f
|
2014-03-26 18:42:46 +01:00
|
|
|
)
|
|
|
|
)
|
2017-01-19 22:25:22 +01:00
|
|
|
args: array(
|
|
|
|
0: Arg(
|
|
|
|
value: Expr_Variable(
|
|
|
|
name: a
|
|
|
|
)
|
|
|
|
byRef: false
|
|
|
|
unpack: false
|
|
|
|
)
|
|
|
|
1: Arg(
|
|
|
|
value: Expr_Variable(
|
|
|
|
name: b
|
|
|
|
)
|
|
|
|
byRef: false
|
|
|
|
unpack: true
|
2014-03-26 18:42:46 +01:00
|
|
|
)
|
2011-12-04 16:52:43 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|