mirror of
https://github.com/php/php-src.git
synced 2025-01-05 18:33:56 +08:00
29 lines
425 B
PHP
29 lines
425 B
PHP
--TEST--
|
|
Bug #67359 (Segfault in recursiveDirectoryIterator)
|
|
--FILE--
|
|
<?php
|
|
try
|
|
{
|
|
$rdi = new recursiveDirectoryIterator(__DIR__, 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
|