1--TEST-- 2Phar: opendir test, root directory 3--SKIPIF-- 4<?php 5if (!extension_loaded("phar")) die("skip"); 6?> 7--INI-- 8phar.require_hash=0 9--FILE-- 10<?php 11$fname = dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.phar.php'; 12$pname = 'phar://' . $fname; 13$file = "<?php 14Phar::mapPhar('hio'); 15__HALT_COMPILER(); ?>"; 16 17$files = array(); 18$files['a'] = 'a'; 19$files['b/a'] = 'b'; 20include 'files/phar_test.inc'; 21 22include $fname; 23$dir = opendir('phar://hio/'); 24while (false !== ($a = readdir($dir))) { 25 var_dump($a); 26 var_dump(is_dir('phar://hio/' . $a)); 27} 28?> 29--CLEAN-- 30<?php unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar.php'); ?> 31--EXPECT-- 32string(1) "a" 33bool(false) 34string(1) "b" 35bool(true) 36