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

20 lines
349 B
Plaintext
Raw Normal View History

2006-02-02 13:57:04 +00:00
--TEST--
Bug #36258 (SplFileObject::getPath() may lead to segfault)
--FILE--
<?php
$diriter = new RecursiveIteratorIterator( new RecursiveDirectoryIterator('.') );
foreach ($diriter as $key => $file) {
var_dump($file->getFilename());
var_dump($file->getPath());
break;
}
?>
2007-01-19 00:36:11 +00:00
===DONE===
2006-02-02 13:57:04 +00:00
--EXPECTF--
2007-01-19 00:36:11 +00:00
unicode(%d) "%s"
unicode(%d) "%s"
===DONE===