--TEST-- Phar::convertToPhar() from zip --SKIPIF-- --INI-- phar.require_hash=0 phar.readonly=0 --FILE-- stopBuffering(); var_dump($phar->isFileFormat(Phar::ZIP)); var_dump(strlen($phar->getStub())); $phar = $phar->convertToExecutable(Phar::ZIP); var_dump($phar->isFileFormat(Phar::ZIP)); var_dump($phar->getStub()); $phar['a'] = 'hi there'; $phar = $phar->convertToExecutable(Phar::PHAR, Phar::NONE, '.3.phar'); var_dump($phar->isFileFormat(Phar::PHAR)); var_dump(strlen($phar->getStub())); copy($fname3, $fname2); $phar = new Phar($fname2); var_dump($phar->isFileFormat(Phar::PHAR)); var_dump(strlen($phar->getStub())); ?> ===DONE=== --CLEAN-- --EXPECT-- bool(false) int(6673) bool(true) string(60) "