1--TEST-- 2Bug #64228 (RecursiveDirectoryIterator always assumes SKIP_DOTS) 3--FILE-- 4<?php 5$dirs = array(); 6$empty_dir = __DIR__ . "/empty"; 7@mkdir($empty_dir); 8 9$i = new RecursiveDirectoryIterator($empty_dir, FilesystemIterator::KEY_AS_PATHNAME | FilesystemIterator::CURRENT_AS_FILEINFO); // Note the absence of FilesystemIterator::SKIP_DOTS 10foreach ($i as $key => $value) { 11 $dirs[] = $value->getFileName(); 12} 13 14@rmdir($empty_dir); 15 16sort($dirs); 17print_r($dirs); 18?> 19--EXPECT-- 20Array 21( 22 [0] => . 23 [1] => .. 24) 25