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