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--EXPECTF--
16string(%d) "%s"
17string(%d) "%s"
18