summaryrefslogtreecommitdiff
path: root/ext/spl/spl_fixedarray.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2019-05-28 20:10:02 +0300
committerDmitry Stogov <dmitry@zend.com>2019-05-28 20:10:02 +0300
commit83804519dffcbb23ef689b37816ee28f2c3192e0 (patch)
tree52b774b523002e442a938cefed6476e63188405e /ext/spl/spl_fixedarray.c
parent071b389bc6da9c6dc33e798806a0da63fc1cedf6 (diff)
downloadphp-git-83804519dffcbb23ef689b37816ee28f2c3192e0.tar.gz
Replace ZVAL_COPY() and ZVAL_COPY_VALUE() for IS_OBJECT by cheaper macros
Diffstat (limited to 'ext/spl/spl_fixedarray.c')
-rw-r--r--ext/spl/spl_fixedarray.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/spl/spl_fixedarray.c b/ext/spl/spl_fixedarray.c
index 5e4a85bf12..d80509f851 100644
--- a/ext/spl/spl_fixedarray.c
+++ b/ext/spl/spl_fixedarray.c
@@ -1008,7 +1008,8 @@ zend_object_iterator *spl_fixedarray_get_iterator(zend_class_entry *ce, zval *ob
zend_iterator_init((zend_object_iterator*)iterator);
- ZVAL_COPY(&iterator->intern.it.data, object);
+ Z_ADDREF_P(object);
+ ZVAL_OBJ(&iterator->intern.it.data, Z_OBJ_P(object));
iterator->intern.it.funcs = &spl_fixedarray_it_funcs;
iterator->intern.ce = ce;
ZVAL_UNDEF(&iterator->intern.value);