1--TEST-- 2Phar: phar.cache_list basic read test 3--EXTENSIONS-- 4phar 5--INI-- 6phar.cache_list={PWD}/files/nophar.phar 7--FILE-- 8<?php 9$pname = 'phar://' . dirname(__FILE__) . '/files/nophar.phar'; 10var_dump(file_get_contents($pname . '/b/c.php')); 11$a = opendir($pname); 12while (false !== ($b = readdir($a))) { 13var_dump($b); 14} 15foreach (new RecursiveIteratorIterator(new Phar($pname)) as $f) { 16 var_dump($f->getPathName()); 17} 18var_dump(is_dir($pname . '/b')); 19var_dump(is_dir($pname . '/d')); 20var_dump(is_dir($pname . '/b/c.php')); 21?> 22--EXPECTF-- 23string(131) "<?php echo "in b\n";$a = fopen("index.php", "r", true);echo stream_get_contents($a);fclose($a);include dirname(__FILE__) . "/../d";" 24string(1) "b" 25string(1) "d" 26string(9) "index.php" 27string(7) "web.php" 28string(%d) "phar://%snophar.phar/b%cc.php" 29string(%d) "phar://%snophar.phar%cd" 30string(%d) "phar://%snophar.phar%cindex.php" 31string(%d) "phar://%snophar.phar%cweb.php" 32bool(true) 33bool(false) 34bool(false) 35