summaryrefslogtreecommitdiff
path: root/Zend/tests/bug33558.phpt
blob: 9c87fc6017f55d2a79ca329112a3fa6138f5f94f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--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