--TEST-- Phar: opendir test, root directory --SKIPIF-- ")) die("skip pre-unicode version of PHP required"); ?> --INI-- phar.require_hash=0 detect_unicode=0 --FILE-- "; $files = array(); $files['a'] = 'a'; $files['b/a'] = 'b'; include 'files/phar_test.inc'; include $fname; $dir = opendir('phar://hio/'); while (false !== ($a = readdir($dir))) { var_dump($a); var_dump(is_dir('phar://hio/' . $a)); } ?> --CLEAN-- --EXPECT-- string(1) "a" bool(false) string(1) "b" bool(true)