xref: /PHP-7.4/Zend/tests/bug33558.phpt (revision d679f022)
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