xref: /PHP-7.3/ext/spl/tests/bug67359.phpt (revision ded3d984)
1--TEST--
2Bug #67359 (Segfault in recursiveDirectoryIterator)
3--FILE--
4<?php
5try
6{
7	$rdi = new recursiveDirectoryIterator(dirname(__FILE__),  FilesystemIterator::SKIP_DOTS | FilesystemIterator::UNIX_PATHS);
8	$it = new recursiveIteratorIterator( $rdi );
9	$it->seek(1);
10	while( $it->valid())
11	{
12		if( $it->isFile() )
13		{
14			$it->current();
15		}
16
17		$it->next();
18	}
19
20	$it->current();
21}
22catch(Exception $e)
23{
24}
25echo "okey"
26?>
27--EXPECT--
28okey
29