xref: /PHP-8.1/ext/spl/tests/bug47534.phpt (revision 7aacc705)
1--TEST--
2SPL: RecursiveDirectoryIterator bug 47534
3--FILE--
4<?php
5$it1 = new RecursiveDirectoryIterator(__DIR__, FileSystemIterator::CURRENT_AS_PATHNAME);
6$it1->rewind();
7echo gettype($it1->current())."\n";
8
9$it2 = new RecursiveDirectoryIterator(__DIR__);
10$it2->rewind();
11echo gettype($it2->current())."\n";
12?>
13--EXPECT--
14string
15object
16