--TEST-- Phar: phar-based phar named with ".zip" fails --EXTENSIONS-- phar --INI-- phar.readonly=0 phar.require_hash=0 --FILE-- '; $phar->setAlias('hio'); $phar->addEmptyDir('test'); $phar->stopBuffering(); copy($fname, $tname); $phar->setAlias('hio2'); try { $p = new Phar($tname); } catch (Exception $e) { echo $e->getMessage() . "\n"; } ?> --CLEAN-- --EXPECTF-- phar zip error: phar "%sexists_as_phar.phar.zip" already exists as a regular phar and must be deleted from disk prior to creating as a zip-based phar