xref: /PHP-5.4/ext/spl/tests/bug36258.phpt (revision 3a4eb3e4)
1--TEST--
2Bug #36258 (SplFileObject::getPath() may lead to segfault)
3--FILE--
4<?php
5
6$diriter = new RecursiveIteratorIterator( new RecursiveDirectoryIterator('.') );
7
8foreach ($diriter as $key => $file) {
9	var_dump($file->getFilename());
10	var_dump($file->getPath());
11	break;
12}
13
14?>
15===DONE===
16--EXPECTF--
17string(%d) "%s"
18string(%d) "%s"
19===DONE===
20