summaryrefslogtreecommitdiff
path: root/ext/spl/tests/bug36287.phpt
blob: 0c3f287d4f17a76cdaca50684b635d59b23273f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
--TEST--
Bug #36287 (Segfault with SplFileInfo conversion)
--FILE--
<?php

$it = new RecursiveIteratorIterator(new RecursiveDirectoryIterator("."), true);

$idx = 0;
foreach($it as $file)
{
	echo "First\n";
	var_Dump($file->getFilename());
	echo "Second\n";
	var_dump($file->getFilename());
	if (++$idx > 1)
	{
		break;
	}
}

?>
===DONE===
--EXPECTF--
First
string(%d) "%s"
Second
string(%d) "%s"
First
string(%d) "%s"
Second
string(%d) "%s"
===DONE===