mirror of
https://github.com/php/php-src.git
synced 2024-10-20 07:53:58 +00:00
a541bb8078
- Update README.PARAMETER_PARSING_API
22 lines
411 B
PHP
22 lines
411 B
PHP
--TEST--
|
|
Bug #36258 (SplFileObject::getPath() may lead to segfault)
|
|
--SKIPIF--
|
|
<?php if (!extension_loaded("spl")) print "skip"; ?>
|
|
--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===
|