summaryrefslogtreecommitdiff
path: root/ext/spl/tests/bug52861.phpt
blob: 30a3261c4efaf2875eba49355e989aa1c6e84c9d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--TEST--
Bug #52861 (unset failes with ArrayObject and deep arrays)
--FILE--
<?php
$arrayObject = new ArrayObject(array('foo' => array('bar' => array('baz' => 'boo'))));

unset($arrayObject['foo']['bar']['baz']);
print_r($arrayObject->getArrayCopy());
?>
--EXPECT--
Array
(
    [foo] => Array
        (
            [bar] => Array
                (
                )

        )

)