You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Ensure iterator is initialized as if it were rewound
Work on exposing an api to rewind these in php-src
Propose a new method zend_create_rewound_internal_iterator_zval for use in getIterator(): InternalIterator
The text was updated successfully, but these errors were encountered:
TysonAndre
changed the title
InternalIterator->next() implicitly calls rewind - explicitly initialize and call rewind instead
InternalIterator->next() implicitly calls rewind - explicitly initialize and mark as rewound instead
Mar 10, 2022
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(): InternalIteratorThe text was updated successfully, but these errors were encountered: