--TEST-- Phar: fopen a .phar for writing (existing file) --EXTENSIONS-- phar --INI-- phar.readonly=1 phar.require_hash=0 --FILE-- "; $files = array(); $files['a.php'] = ''; $files['b.php'] = ''; $files['b/c.php'] = ''; include 'files/phar_test.inc'; var_dump(fopen($pname . '/b/c.php', 'wb')); include $pname . '/b/c.php'; ?> --CLEAN-- --EXPECTF-- Warning: fopen(phar://%sopen_for_write_existing_b.phar.php/b/c.php): Failed to open stream: phar error: write operations disabled by the php.ini setting phar.readonly in %sopen_for_write_existing_b.php on line %d bool(false) This is b/c