mirror of
https://github.com/php/php-src.git
synced 2024-12-12 19:33:31 +08:00
add test for bug #36258
This commit is contained in:
parent
ff30daae6e
commit
0655132e2c
19
ext/spl/tests/bug36258.phpt
Normal file
19
ext/spl/tests/bug36258.phpt
Normal file
@ -0,0 +1,19 @@
|
||||
--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;
|
||||
}
|
||||
|
||||
echo "Done\n";
|
||||
?>
|
||||
--EXPECTF--
|
||||
string(%d) "%s"
|
||||
string(%d) "%s"
|
||||
Done
|
Loading…
Reference in New Issue
Block a user