--TEST-- Phar::convertToTar() --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->getStub()); $phar = $phar->convertToExecutable(Phar::TAR); var_dump($phar->isFileFormat(Phar::TAR)); var_dump($phar->getStub()); copy($fname2, $fname3); $phar = new Phar($fname3); var_dump($phar->isFileFormat(Phar::TAR)); var_dump($phar->getStub()); ?> --CLEAN-- --EXPECT-- bool(false) string(48) "" bool(true) string(60) "