--TEST-- Phar: opendir test - no dir specified at all --SKIPIF-- --INI-- phar.require_hash=0 --FILE-- "; $files = array(); $files['a'] = 'abc'; include 'files/phar_test.inc'; include $pname; $dir = opendir('phar://hio'); ?> --CLEAN-- --EXPECTF-- string(%d) "%s017.phar.php" bool(true) Warning: opendir(phar://hio): Failed to open directory: phar error: no directory in "phar://hio", must have at least phar://hio/ for root directory (always use full path to a new phar) phar url "phar://hio" is unknown in %s017.php on line %d