--TEST-- Phar::convertToTar() gzip compressed --SKIPIF-- --INI-- phar.require_hash=0 phar.readonly=0 --FILE-- '; $file = $stub; $files = array(); $files['a'] = 'a'; $files['b'] = 'b'; $files['c'] = 'c'; include 'files/phar_test.inc'; $phar = new Phar($fname); var_dump($phar->isFileFormat(Phar::TAR)); var_dump($phar->isCompressed()); var_dump($phar->getStub()); $phar = $phar->convertToExecutable(Phar::TAR, Phar::GZ); var_dump($phar->isFileFormat(Phar::TAR)); var_dump($phar->isCompressed()); var_dump($phar->getStub()); copy($fname2, $fname3); $phar = new Phar($fname3); var_dump($phar->isFileFormat(Phar::TAR)); var_dump($phar->isCompressed() == Phar::GZ); var_dump($phar->getStub()); ?> --CLEAN-- --EXPECT-- bool(false) bool(false) string(48) "" bool(true) int(4096) string(60) "