--TEST-- Phar: create and modify zip-based phar --SKIPIF-- --INI-- phar.readonly=0 opcache.validate_timestamps=1 --FILE-- isFileFormat(Phar::ZIP)); $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'; ?> --CLEAN-- --EXPECT-- bool(true) brand new! bool(true) modified! another!