php-src/ext/spl/tests/bug36258.phpt
2018-10-14 19:45:12 +02:00

20 lines
346 B
PHP

--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;
}
?>
===DONE===
--EXPECTF--
string(%d) "%s"
string(%d) "%s"
===DONE===