mirror of
https://github.com/phabelio/PHP-Parser.git
synced 2024-12-03 18:07:58 +01:00
51 lines
998 B
Plaintext
51 lines
998 B
Plaintext
Return and pass by ref
|
|
-----
|
|
<?php
|
|
|
|
function a(&$b) {}
|
|
function &a($b) {}
|
|
-----
|
|
array(
|
|
0: Stmt_Function(
|
|
byRef: false
|
|
name: Identifier(
|
|
name: a
|
|
)
|
|
params: array(
|
|
0: Param(
|
|
flags: 0
|
|
type: null
|
|
byRef: true
|
|
variadic: false
|
|
var: Expr_Variable(
|
|
name: b
|
|
)
|
|
default: null
|
|
)
|
|
)
|
|
returnType: null
|
|
stmts: array(
|
|
)
|
|
)
|
|
1: Stmt_Function(
|
|
byRef: true
|
|
name: Identifier(
|
|
name: a
|
|
)
|
|
params: array(
|
|
0: Param(
|
|
flags: 0
|
|
type: null
|
|
byRef: false
|
|
variadic: false
|
|
var: Expr_Variable(
|
|
name: b
|
|
)
|
|
default: null
|
|
)
|
|
)
|
|
returnType: null
|
|
stmts: array(
|
|
)
|
|
)
|
|
) |