--TEST-- Phar: tar-based phar, bzipped tar --SKIPIF-- --INI-- phar.readonly=0 phar.require_hash=0 --FILE-- init(); $tar->addFile('tar_004.php', 'addFile('internal/file/here', "hi there!\n"); $tar->mkDir('internal/dir'); $tar->mkDir('dir'); $tar->addFile('.phar/stub.php', 'close(); include $alias; $phar = new Phar($fname); $phar['test'] = 'hi'; copy($fname, $fname2); $phar2 = new Phar($fname2); var_dump($phar2->isFileFormat(Phar::TAR)); var_dump($phar2->isCompressed() == Phar::BZ2); ?> --CLEAN-- --EXPECTF-- string(%d) "%star_bz2.phar" bool(true) string(9) "it worked" string(%d) "phar://%star_bz2.phar/tar_004.php" bool(true) bool(true)