xref: /PHP-8.3/Zend/tests/gh10168/assign_ref.phpt (revision f43fa591)
1--TEST--
2GH-10168: Assign 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 = &$tmp);
15
16?>
17--EXPECT--
18NULL
19