summaryrefslogtreecommitdiff
path: root/ext/spl/tests/bug67359.phpt
blob: e97a403717f1b5c50e9fb68b3438b9c094363441 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
--TEST--
Bug #67359 (Segfault in recursiveDirectoryIterator)
--FILE--
<?php
try
{
	$rdi = new recursiveDirectoryIterator(dirname(__FILE__),  FilesystemIterator::SKIP_DOTS | FilesystemIterator::UNIX_PATHS);
	$it = new recursiveIteratorIterator( $rdi );
	$it->seek(1);
	while( $it->valid())
	{
		if( $it->isFile() )
		{
			$it->current();
		}

		$it->next();
	}

	$it->current();
}
catch(Exception $e)
{
}
echo "okey"
?>
--EXPECT--
okey