mirror of
https://github.com/php/php-src.git
synced 2024-12-25 01:40:50 +08:00
22 lines
268 B
PHP
22 lines
268 B
PHP
--TEST--
|
|
Bug #33558 (warning with nested calls to functions returning by reference)
|
|
--INI--
|
|
error_reporting=4095
|
|
--FILE--
|
|
<?php
|
|
function & foo() {
|
|
$var = 'ok';
|
|
return $var;
|
|
}
|
|
|
|
function & bar() {
|
|
return foo();
|
|
}
|
|
|
|
$a =& bar();
|
|
echo "$a\n";
|
|
?>
|
|
--EXPECT--
|
|
ok
|
|
|