--TEST-- Phar object: unset file --SKIPIF-- --INI-- phar.readonly=1 phar.require_hash=0 --FILE-- setInfoClass('SplFileObject'); $phar['f.php'] = 'hi'; var_dump(isset($phar['f.php'])); echo $phar['f.php']; echo "\n"; unset($phar['f.php']); var_dump(isset($phar['f.php'])); } catch (BadMethodCallException $e) { echo "Exception: " . $e->getMessage() . "\n"; } ?> ===DONE=== --CLEAN-- --EXPECT-- Exception: Write operations disabled by the php.ini setting phar.readonly ===DONE===