From: Nikita Popov Date: Mon, 22 Feb 2016 11:39:07 +0000 (+0100) Subject: Fix typo in previous commit X-Git-Tag: php-7.0.5RC1~82 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6c2ca18fe0b9355f8cc4b681b42127fc52ccd0c2;p=php Fix typo in previous commit Happened to be correct because array is the first member, but definitely not what I wanted... --- 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);