We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9658d9a commit da7a66dCopy full SHA for da7a66d
NEWS
@@ -8,6 +8,8 @@ PHP NEWS
8
(Jeremie Courreges-Anglas)
9
. Fixed bug GH-12073 (Segfault when freeing incompletely initialized
10
closures). (ilutov)
11
+ . Fixed bug GH-12060 (Internal iterator rewind handler is called twice).
12
+ (ju1ius)
13
14
- DOM:
15
. Fix memory leak when setting an invalid DOMDocument encoding. (nielsdos)
Zend/zend_interfaces.c
@@ -585,6 +585,7 @@ ZEND_METHOD(InternalIterator, rewind) {
585
RETURN_THROWS();
586
}
587
588
+ intern->rewind_called = 1;
589
if (!intern->iter->funcs->rewind) {
590
/* Allow calling rewind() if no iteration has happened yet,
591
* even if the iterator does not support rewinding. */
0 commit comments