xref: /PHP-8.3/Zend/tests/gh10168/assign.phpt (revision f43fa591)
1--TEST--
2GH-10168: Assign
3--FILE--
4<?php
5
6class Test {
7    function __destruct() {
8        $GLOBALS['a'] = null;
9    }
10}
11
12$a = new Test;
13var_dump($a = new Test);
14
15?>
16--EXPECT--
17object(Test)#2 (0) {
18}
19