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(
|
|
|
|
0: Expr_FuncCall(
|
|
|
|
name: Name(
|
|
|
|
parts: array(
|
|
|
|
0: f
|
|
|
|
)
|
|
|
|
)
|
|
|
|
args: array(
|
|
|
|
)
|
|
|
|
)
|
|
|
|
1: Expr_FuncCall(
|
|
|
|
name: Name(
|
|
|
|
parts: array(
|
|
|
|
0: f
|
|
|
|
)
|
|
|
|
)
|
|
|
|
args: array(
|
|
|
|
0: Arg(
|
|
|
|
value: Expr_Variable(
|
|
|
|
name: a
|
|
|
|
)
|
|
|
|
byRef: false
|
2014-03-26 18:42:46 +01:00
|
|
|
unpack: false
|
2011-12-04 16:52:43 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
2: Expr_FuncCall(
|
|
|
|
name: Name(
|
|
|
|
parts: array(
|
|
|
|
0: f
|
|
|
|
)
|
|
|
|
)
|
|
|
|
args: array(
|
|
|
|
0: Arg(
|
|
|
|
value: Expr_Variable(
|
|
|
|
name: a
|
|
|
|
)
|
|
|
|
byRef: false
|
2014-03-26 18:42:46 +01:00
|
|
|
unpack: false
|
2011-12-04 16:52:43 +01:00
|
|
|
)
|
|
|
|
1: Arg(
|
|
|
|
value: Expr_Variable(
|
|
|
|
name: b
|
|
|
|
)
|
|
|
|
byRef: false
|
2014-03-26 18:42:46 +01:00
|
|
|
unpack: false
|
2011-12-04 16:52:43 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
3: Expr_FuncCall(
|
|
|
|
name: Name(
|
|
|
|
parts: array(
|
|
|
|
0: f
|
|
|
|
)
|
|
|
|
)
|
|
|
|
args: array(
|
|
|
|
0: Arg(
|
|
|
|
value: Expr_Variable(
|
|
|
|
name: a
|
|
|
|
)
|
|
|
|
byRef: true
|
2014-03-26 18:42:46 +01:00
|
|
|
unpack: false
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
4: Expr_FuncCall(
|
|
|
|
name: Name(
|
|
|
|
parts: array(
|
|
|
|
0: f
|
|
|
|
)
|
|
|
|
)
|
|
|
|
args: array(
|
|
|
|
0: Arg(
|
|
|
|
value: Expr_Variable(
|
|
|
|
name: a
|
|
|
|
)
|
|
|
|
byRef: false
|
|
|
|
unpack: false
|
|
|
|
)
|
|
|
|
1: Arg(
|
|
|
|
value: Expr_Variable(
|
|
|
|
name: b
|
|
|
|
)
|
|
|
|
byRef: false
|
|
|
|
unpack: true
|
2011-12-04 16:52:43 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|