summaryrefslogtreecommitdiff
path: root/tests/lang/passByReference_004.phpt
blob: e8a7963d262c5c28bb9ce5f31887e3d2cb29e55a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--TEST--
passing the return value from a function by reference
--FILE--
<?php

function foo(&$ref)
{
	var_dump($ref);
}

function bar($value)
{
	return $value;
}

foo(bar(5));

?>
--EXPECTF--
Strict Standards: Only variables should be passed by reference in %s on line 13
int(5)