php-src/ext/spl/tests/bug36258.phpt

22 lines
409 B
Plaintext
Raw Normal View History

2006-02-02 13:57:04 +00:00
--TEST--
Bug #36258 (SplFileObject::getPath() may lead to segfault)
2006-03-23 15:05:02 +00:00
--SKIPIF--
<?php if (!extension_loaded("spl")) print "skip"; ?>
2006-02-02 13:57:04 +00:00
--FILE--
<?php
$diriter = new RecursiveIteratorIterator( new RecursiveDirectoryIterator('.') );
foreach ($diriter as $key => $file) {
var_dump($file->getFilename());
var_dump($file->getPath());
break;
}
echo "Done\n";
?>
--EXPECTF--
string(%d) "%s"
string(%d) "%s"
Done