1--TEST-- 2Bug #71539.5 (Memory error on $arr[$a] =& $arr[$b] if RHS rehashes) 3--FILE-- 4<?php 5$array = []; 6$array['']->prop =& $array[0]; 7$array[0] = 42; 8var_dump($array); 9?> 10--EXPECT-- 11array(2) { 12 [0]=> 13 &int(42) 14 [""]=> 15 object(stdClass)#1 (1) { 16 ["prop"]=> 17 &int(42) 18 } 19} 20