summaryrefslogtreecommitdiff
path: root/ext/spl/tests/bug36287.phpt
blob: 29ae0e2c9dba6f4b9534a5f36601405f6bcd479a (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
33
34
35
36
37
38
39
40
--TEST--
Bug #36287
--SKIPIF--
<?php if (!extension_loaded("spl")) print "skip"; ?>
--FILE--
<?php

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

$idx = 0;
foreach($it as $file)
{
	echo "First\n";
	if("." != $file && ".." != $file)
	{
		var_Dump($file->getFilename());
	}
	echo "Second\n";
	if($file != "." && $file != "..")
	{
		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===