--TEST-- Phar: tar-based phar, make new bzipped tar --SKIPIF-- --INI-- phar.readonly=0 --FILE-- isFileFormat(Phar::TAR)); $phar = $phar->compress(Phar::BZ2); copy($fname2, $fname3); $phar2 = new Phar($fname3); var_dump($phar2->isFileFormat(Phar::TAR)); var_dump($phar2->isCompressed() == Phar::BZ2); ?> --CLEAN-- --EXPECT-- bool(true) bool(true) bool(true)