summaryrefslogtreecommitdiff
path: root/ext/spl/tests
diff options
context:
space:
mode:
authorStanislav Malyshev <stas@php.net>2013-02-26 22:13:01 -0800
committerStanislav Malyshev <stas@php.net>2013-02-26 22:13:01 -0800
commit207d0ee08abcfba2d8da3bca343c4879710985b9 (patch)
tree343a8dbbcdf10efccf0860dd8f086128d34f2bb8 /ext/spl/tests
parent7a3933a93ba2f0b1f9245d0b195bfec54951fca4 (diff)
parent7c082325091ee7bfcf0e1e8b488b1e9fa66f0739 (diff)
downloadphp-git-207d0ee08abcfba2d8da3bca343c4879710985b9.tar.gz
Merge branch 'PHP-5.4' into PHP-5.5
* PHP-5.4: Bug #52861: unset fails with ArrayObject and deep arrays
Diffstat (limited to 'ext/spl/tests')
-rw-r--r--ext/spl/tests/bug52861.phpt22
1 files changed, 22 insertions, 0 deletions
diff --git a/ext/spl/tests/bug52861.phpt b/ext/spl/tests/bug52861.phpt
new file mode 100644
index 0000000000..30a3261c4e
--- /dev/null
+++ b/ext/spl/tests/bug52861.phpt
@@ -0,0 +1,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
+ (
+ )
+
+ )
+
+)
+