xref: /PHP-8.2/ext/spl/tests/bug52861.phpt (revision d679f022)
1--TEST--
2Bug #52861 (unset failes with ArrayObject and deep arrays)
3--FILE--
4<?php
5$arrayObject = new ArrayObject(array('foo' => array('bar' => array('baz' => 'boo'))));
6
7unset($arrayObject['foo']['bar']['baz']);
8print_r($arrayObject->getArrayCopy());
9?>
10--EXPECT--
11Array
12(
13    [foo] => Array
14        (
15            [bar] => Array
16                (
17                )
18
19        )
20
21)
22