1--TEST--
2Assigning the result of a non-reference function by-reference should not leak
3--FILE--
4<?php
5
6function func() {
7    return [0];
8}
9
10$x = $y =& func();
11var_dump($x, $y);
12
13?>
14--EXPECTF--
15Notice: Only variables should be assigned by reference in %s on line %d
16array(1) {
17  [0]=>
18  int(0)
19}
20array(1) {
21  [0]=>
22  int(0)
23}
24