helly Mon Feb 6 01:28:08 2006 UTC
Added files:
/php-src/ext/spl/tests bug36287.phpt
Log:
- Add new test
http://cvs.php.net/viewcvs.cgi/php-src/ext/spl/tests/bug36287.phpt?view=markup&rev=1.1
Index: php-src/ext/spl/tests/bug36287.phpt
+++ php-src/ext/spl/tests/bug36287.phpt
--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===
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php