--TEST-- Phar: rmdir test zip-based --SKIPIF-- --INI-- phar.readonly=0 phar.require_hash=0 --FILE-- setStub(""); $phar['a/x'] = 'a'; $phar->stopBuffering(); include $fname; echo file_get_contents($alias . '/a/x') . "\n"; rmdir($alias . '/a'); echo file_get_contents($alias . '/a/x') . "\n"; ?> --CLEAN-- --EXPECTF-- a Warning: file_get_contents(phar://%srename.phar.zip/a/x): failed to open stream: phar error: "a" is not a file in phar "%srename.phar.zip" in %srename.php on line %d