xref: /PHP-7.4/ext/spl/tests/bug47534.phpt (revision 26dfce7f)
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--EXPECT--
13string
14object
15