php-src/tests/lang/passByReference_004.phpt
Nikita Popov 8d00385871 Reclassify E_STRICT notices
Per RFC https://wiki.php.net/rfc/reclassify_e_strict

While reviewing this, found that there are still three E_STRICTs
left in libraries - need to discuss those.
2015-04-01 11:17:55 +02:00

22 lines
269 B
PHP

--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--
Notice: Only variables should be passed by reference in %s on line 13
int(5)