xref: /PHP-7.2/ext/spl/tests/bug36258.phpt (revision 17ccbeec)
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