Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 713a3fc58c
Fetching contributors…

Cannot retrieve contributors at this time

22 lines (17 sloc) 0.279 kB
--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)
Jump to Line
Something went wrong with that request. Please try again.