1--TEST--
2Don't leak when breaking from FilesystemIterator
3--FILE--
4<?php
5$iterator = new FilesystemIterator(__DIR__);
6foreach ($iterator as $value) {
7    break;
8}
9?>
10===DONE===
11--EXPECT--
12===DONE===
13