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