Skip to content

Commit ebe62bf

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

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
@@ -635,6 +635,7 @@ ZEND_METHOD(InternalIterator, rewind) {
635635
}
636636

637637
intern->iter->funcs->rewind(intern->iter);
638+
intern->rewind_called = 1;
638639
intern->iter->index = 0;
639640
}
640641

0 commit comments

Comments
 (0)