xref: /PHP-8.0/ext/spl/tests/bug67359.phpt (revision f8d79582)
1--TEST--
2Bug #67359 (Segfault in recursiveDirectoryIterator)
3--FILE--
4<?php
5try
6{
7    $rdi = new recursiveDirectoryIterator(__DIR__,  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