Skip to content

Commit f6f9cba

Browse files
committed
prevents double call to internal iterator rewind handler
Closes #12060
1 parent 1fceb41 commit f6f9cba

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Zend/zend_interfaces.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -623,6 +623,7 @@ ZEND_METHOD(InternalIterator, rewind) {
623623
RETURN_THROWS();
624624
}
625625

626+
intern->rewind_called = 1;
626627
if (!intern->iter->funcs->rewind) {
627628
/* Allow calling rewind() if no iteration has happened yet,
628629
* even if the iterator does not support rewinding. */

0 commit comments

Comments
 (0)