mirror of
https://github.com/php/php-src.git
synced 2024-11-24 10:24:11 +08:00
8d00385871
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.
22 lines
269 B
PHP
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)
|