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