Skip to content

Commit 4448934

Browse files
committed
Don't mark SplFixedArray as REUSE_GET_ITERATOR
This flag only has an effect (or use) for Iterators, not for IteratorAggregates. Removing the confusing flag.
1 parent 3fd252e commit 4448934

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

ext/spl/spl_fixedarray.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -887,7 +887,6 @@ PHP_MINIT_FUNCTION(spl_fixedarray)
887887
zend_ce_aggregate, zend_ce_arrayaccess, zend_ce_countable, php_json_serializable_ce);
888888
spl_ce_SplFixedArray->create_object = spl_fixedarray_new;
889889
spl_ce_SplFixedArray->get_iterator = spl_fixedarray_get_iterator;
890-
spl_ce_SplFixedArray->ce_flags |= ZEND_ACC_REUSE_GET_ITERATOR;
891890

892891
memcpy(&spl_handler_SplFixedArray, &std_object_handlers, sizeof(zend_object_handlers));
893892

0 commit comments

Comments
 (0)