Skip to content

Commit 64e6ddc

Browse files
author
Julien Pauli
committed
Fix #75015. Crash in SPL destructors
1 parent a8e25fd commit 64e6ddc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ext/spl/spl_iterators.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -941,6 +941,7 @@ static void spl_RecursiveIteratorIterator_free_storage(zend_object *_object)
941941
if (object->iterators) {
942942
efree(object->iterators);
943943
object->iterators = NULL;
944+
object->level = 0;
944945
}
945946

946947
zend_object_std_dtor(&object->std);

0 commit comments

Comments
 (0)