--TEST-- Phar: rename test tar-based --SKIPIF-- --INI-- phar.readonly=0 phar.require_hash=0 --FILE-- init(); $tar->addFile('.phar/stub.php', ""); $files = array(); $files['a'] = 'a'; foreach ($files as $n => $file) { $tar->addFile($n, $file); } $tar->close(); 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.tar/a): Failed to open stream: phar error: "a" is not a file in phar "%srename.phar.tar" in %srename.php on line %d