php-src/ext/spl/tests/bug36287.phpt
2008-05-24 14:10:44 +00:00

33 lines
453 B
PHP
Executable File

--TEST--
Bug #36287 (Segfault with SplFileInfo conversion)
--FILE--
<?php
$it = new RecursiveIteratorIterator(new RecursiveDirectoryIterator("."), true);
$idx = 0;
foreach($it as $file)
{
echo "First\n";
var_Dump($file->getFilename());
echo "Second\n";
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===