php-parser/test/code/parser/stmt/function/byRef.test

37 lines
638 B
Plaintext
Raw Normal View History

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
params: array(
0: Param(
name: b
default: null
type: null
byRef: true
)
)
stmts: array(
)
name: a
)
1: Stmt_Function(
byRef: true
params: array(
0: Param(
name: b
default: null
type: null
byRef: false
)
)
stmts: array(
)
name: a
)
)