--TEST-- Phar: create and modify tar-based phar --SKIPIF-- --INI-- phar.readonly=0 --FILE-- isFileFormat(Phar::TAR)); $sig1 = md5_file($fname); include $pname . '/a.php'; file_put_contents($pname .'/a.php', "modified!\n"); file_put_contents($pname .'/b.php', "another!\n"); $phar = new Phar($fname); $sig2 = md5_file($fname); var_dump($sig1 != $sig2); include $pname . '/a.php'; include $pname . '/b.php'; ?> ===DONE=== --CLEAN-- --EXPECT-- bool(true) brand new! bool(true) modified! another! ===DONE===