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