--TEST-- Phar: delete test, tar-based phar --SKIPIF-- --INI-- phar.readonly=0 phar.require_hash=0 --FILE-- "; $phar = new Phar($fname); $phar['a'] = 'a'; $phar->setStub($stub); $phar->stopBuffering(); echo file_get_contents($alias . '/a') . "\n"; $phar->delete('a'); echo file_get_contents($alias . '/a') . "\n"; ?> --CLEAN-- --EXPECTF-- a Warning: file_get_contents(phar://%sdelete.phar.tar/a): Failed to open stream: phar error: "a" is not a file in phar "%sdelete.phar.tar" in %sdelete.php on line %d