1--TEST-- 2GH-10168: Assign dim ref with prop ref 3--FILE-- 4<?php 5 6class Test { 7 static ?Test $test; 8 9 function __destruct() { 10 $GLOBALS['a'] = null; 11 } 12} 13 14$a = [new Test]; 15Test::$test = &$a[0]; 16$tmp = new Test; 17var_dump($a[0] = &$tmp); 18 19?> 20--EXPECT-- 21object(Test)#2 (0) { 22} 23