xref: /PHP-5.5/Zend/tests/bug33558.phpt (revision 610c7fbe)
1--TEST--
2Bug #33558 (warning with nested calls to functions returning by reference)
3--INI--
4error_reporting=4095
5--FILE--
6<?php
7function & foo() {
8    $var = 'ok';
9    return $var;
10}
11
12function & bar() {
13    return foo();
14}
15
16$a =& bar();
17echo "$a\n";
18?>
19--EXPECT--
20ok
21
22