2006-02-06 01:28:12 +00:00
|
|
|
--TEST--
|
2007-05-07 18:03:01 +00:00
|
|
|
Bug #36287 (Segfault with SplFileInfo conversion)
|
2006-03-23 15:03:27 +00:00
|
|
|
--SKIPIF--
|
|
|
|
<?php if (!extension_loaded("spl")) print "skip"; ?>
|
2006-02-06 01:28:12 +00:00
|
|
|
--FILE--
|
|
|
|
<?php
|
|
|
|
|
|
|
|
$it = new RecursiveIteratorIterator(new RecursiveDirectoryIterator("."), true);
|
|
|
|
|
|
|
|
$idx = 0;
|
|
|
|
foreach($it as $file)
|
|
|
|
{
|
|
|
|
echo "First\n";
|
2007-11-02 19:41:12 +00:00
|
|
|
var_Dump($file->getFilename());
|
2006-02-06 01:28:12 +00:00
|
|
|
echo "Second\n";
|
2007-11-02 19:41:12 +00:00
|
|
|
var_dump($file->getFilename());
|
2006-02-06 01:28:12 +00:00
|
|
|
if (++$idx > 1)
|
|
|
|
{
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
?>
|
|
|
|
===DONE===
|
|
|
|
--EXPECTF--
|
|
|
|
First
|
|
|
|
string(%d) "%s"
|
|
|
|
Second
|
|
|
|
string(%d) "%s"
|
|
|
|
First
|
|
|
|
string(%d) "%s"
|
|
|
|
Second
|
|
|
|
string(%d) "%s"
|
|
|
|
===DONE===
|