mirror of
https://github.com/php/php-src.git
synced 2024-10-03 07:46:12 +00:00
61099f8585
When checking to make into a reference write, readwrite are checked but not unset
23 lines
381 B
PHP
23 lines
381 B
PHP
--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
|
|
(
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|