com php-src: Revert "Fix ArrayObject with immutable array": ext/spl/spl_array.c
| From: | Nikita Popov | Date: | Thu, 29 May 2014 19:49:54 +0000 |
| Subject: | com php-src: Revert "Fix ArrayObject with immutable array": ext/spl/spl_array.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-78640@lists.php.net to get a copy of this message | ||
Commit: 92c9f826c988287165e2439026e9a21d299dbe81
Author: Nikita Popov <nikic@php.net> Thu, 29 May 2014 21:49:54 +0200
Parents: 9c85aa0489671e6cec43406161c558567e5b7336
Branches: phpng
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=92c9f826c988287165e2439026e9a21d299dbe81
Log:
Revert "Fix ArrayObject with immutable array"
This reverts commit 9c85aa0489671e6cec43406161c558567e5b7336.
Changed paths:
M ext/spl/spl_array.c
Diff:
diff --git a/ext/spl/spl_array.c b/ext/spl/spl_array.c
index 9420990..2fa7a53 100644
--- a/ext/spl/spl_array.c
+++ b/ext/spl/spl_array.c
@@ -1146,9 +1146,6 @@ static void spl_array_set_array(zval *object, spl_array_object *intern, zval
*ar
if (Z_TYPE_P(array) == IS_ARRAY) {
SEPARATE_ZVAL_IF_NOT_REF(array);
}
- if (Z_IMMUTABLE_P(array)) {
- zval_copy_ctor(array);
- }
if (Z_TYPE_P(array) == IS_OBJECT && (Z_OBJ_HT_P(array) == &spl_handler_ArrayObject ||
Z_OBJ_HT_P(array) == &spl_handler_ArrayIterator)) {
zval_ptr_dtor(&intern->array);