--TEST-- Phar: test opendir() interception --SKIPIF-- --INI-- phar.require_hash=1 phar.readonly=0 detect_unicode=0 --FILE-- '; $a['dir/file1.txt'] = 'hi'; $a['dir/file2.txt'] = 'hi2'; $a['dir/file3.txt'] = 'hi3'; $a->setStub(' ===DONE=== --CLEAN-- --EXPECTF-- file1.txtfile2.txtfile3.txt Warning: opendir(phar://): failed to open dir: phar error: no directory in "phar://", must have at least phar:/// for root directory (always use full path to a new phar) phar url "phar://" is unknown in %sopendir.php on line %d Warning: opendir(phar://hi.phar): failed to open dir: phar error: invalid url or non-existent phar "phar://hi.phar" phar url "phar://hi.phar" is unknown in %sopendir.php on line %d ===DONE===