1--TEST--
2GH-10168: Assign 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;
15$tmp = new Test;
16var_dump($a = &$tmp);
17
18?>
19--EXPECT--
20NULL
21