2011-12-07 18:17:05 +01:00
|
|
|
Return and pass by ref
|
|
|
|
-----
|
|
|
|
<?php
|
|
|
|
|
|
|
|
function a(&$b) {}
|
|
|
|
function &a($b) {}
|
|
|
|
-----
|
|
|
|
array(
|
|
|
|
0: Stmt_Function(
|
|
|
|
byRef: false
|
2017-04-28 19:09:39 +02:00
|
|
|
name: Identifier(
|
|
|
|
name: a
|
|
|
|
)
|
2011-12-07 18:17:05 +01:00
|
|
|
params: array(
|
|
|
|
0: Param(
|
|
|
|
type: null
|
|
|
|
byRef: true
|
2014-03-26 18:23:30 +01:00
|
|
|
variadic: false
|
2017-01-19 23:38:40 +01:00
|
|
|
var: Expr_Variable(
|
2017-01-19 23:23:38 +01:00
|
|
|
name: b
|
|
|
|
)
|
2014-03-26 18:23:30 +01:00
|
|
|
default: null
|
2011-12-07 18:17:05 +01:00
|
|
|
)
|
|
|
|
)
|
2015-03-12 13:17:31 +01:00
|
|
|
returnType: null
|
2011-12-07 18:17:05 +01:00
|
|
|
stmts: array(
|
|
|
|
)
|
|
|
|
)
|
|
|
|
1: Stmt_Function(
|
|
|
|
byRef: true
|
2017-04-28 19:09:39 +02:00
|
|
|
name: Identifier(
|
|
|
|
name: a
|
|
|
|
)
|
2011-12-07 18:17:05 +01:00
|
|
|
params: array(
|
|
|
|
0: Param(
|
|
|
|
type: null
|
|
|
|
byRef: false
|
2014-03-26 18:23:30 +01:00
|
|
|
variadic: false
|
2017-01-19 23:38:40 +01:00
|
|
|
var: Expr_Variable(
|
2017-01-19 23:23:38 +01:00
|
|
|
name: b
|
|
|
|
)
|
2014-03-26 18:23:30 +01:00
|
|
|
default: null
|
2011-12-07 18:17:05 +01:00
|
|
|
)
|
|
|
|
)
|
2015-03-12 13:17:31 +01:00
|
|
|
returnType: null
|
2011-12-07 18:17:05 +01:00
|
|
|
stmts: array(
|
|
|
|
)
|
|
|
|
)
|
2017-01-19 22:25:22 +01:00
|
|
|
)
|