php-src/ext/spl/tests/bug36287.phpt
Jani Taskinen a541bb8078 - Fix tests
- Update README.PARAMETER_PARSING_API
2007-11-02 19:41:12 +00:00

35 lines
517 B
PHP
Executable File

--TEST--
Bug #36287 (Segfault with SplFileInfo conversion)
--SKIPIF--
<?php if (!extension_loaded("spl")) print "skip"; ?>
--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===