Skip to content

Commit cfbd52a

Browse files
Apply suggestion from @ArtUkrainskiy
Co-Authored-By: Artem Ukrainskiy <art.ukrainskiy@gmail.com>
1 parent af71b8e commit cfbd52a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎Zend/zend_gc.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2214,6 +2214,7 @@ ZEND_API int zend_gc_collect_cycles(void)
22142214
* run GC another time. */
22152215
if (should_rerun_gc && !did_rerun_gc) {
22162216
did_rerun_gc = true;
2217+
GC_G(visited) = 0;
22172218
goto rerun_gc;
22182219
}
22192220

0 commit comments

Comments
 (0)