php-src/ext/spl/tests/bug36287.phpt
2006-02-06 01:28:12 +00:00

39 lines
498 B
PHP
Executable File

--TEST--
Bug #36287
--FILE--
<?php
$it = new RecursiveIteratorIterator(new RecursiveDirectoryIterator("."), true);
$idx = 0;
foreach($it as $file)
{
echo "First\n";
if("." != $file && ".." != $file)
{
var_Dump($file->getFilename());
}
echo "Second\n";
if($file != "." && $file != "..")
{
var_dump($file->getFilename());
}
if (++$idx > 1)
{
break;
}
}
?>
===DONE===
--EXPECTF--
First
string(%d) "%s"
Second
string(%d) "%s"
First
string(%d) "%s"
Second
string(%d) "%s"
===DONE===