mirror of
https://github.com/php/php-src.git
synced 2024-09-29 05:46:06 +00:00
22 lines
279 B
Plaintext
22 lines
279 B
Plaintext
|
--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)
|