From 6c2ca18fe0b9355f8cc4b681b42127fc52ccd0c2 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Mon, 22 Feb 2016 12:39:07 +0100 Subject: [PATCH] Fix typo in previous commit Happened to be correct because array is the first member, but definitely not what I wanted... --- ext/spl/spl_array.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/spl/spl_array.c b/ext/spl/spl_array.c index d3603a3b32..df2c7d126a 100644 --- a/ext/spl/spl_array.c +++ b/ext/spl/spl_array.c @@ -168,7 +168,7 @@ static zend_object *spl_array_object_new_ex(zend_class_entry *class_type, zval * ZVAL_UNDEF(&intern->array); } else if (Z_OBJ_HT_P(orig) == &spl_handler_ArrayObject) { ZVAL_ARR(&intern->array, - zend_array_dup(spl_array_get_hash_table(&other->array, 0))); + zend_array_dup(spl_array_get_hash_table(other, 0))); } else { ZEND_ASSERT(Z_OBJ_HT_P(orig) == &spl_handler_ArrayIterator); ZVAL_COPY(&intern->array, orig); -- 2.40.0