summaryrefslogtreecommitdiff
path: root/ext/spl/tests/bug36258.phpt
blob: 297c7f59780bd03a3e878c5cfb4bd5cf92f8c824 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--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;
}

echo "Done\n";
?>
--EXPECTF--	
string(%d) "%s"
string(%d) "%s"
Done