Open TysonAndre opened 2 years ago
zend_internal_iterator_ensure_rewound is static and so is the definition of zend_internal_iterator
This is counterproductive when ensuring predictable iteration behavior when getIterator does ensure the iterator is rewound
Propose a new method zend_create_rewound_internal_iterator_zval for use in getIterator(): InternalIterator
zend_create_rewound_internal_iterator_zval
zend_internal_iterator_ensure_rewound is static and so is the definition of zend_internal_iterator
This is counterproductive when ensuring predictable iteration behavior when getIterator does ensure the iterator is rewound
Propose a new method
zend_create_rewound_internal_iterator_zval
for use in getIterator(): InternalIterator