1--TEST-- 2Phar::getModified() 3--EXTENSIONS-- 4phar 5zlib 6--INI-- 7phar.require_hash=0 8phar.readonly=0 9--FILE-- 10<?php 11$fname = __DIR__ . '/' . basename(__FILE__, '.php') . '.phar.php'; 12$pname = 'phar://' . $fname; 13$file = '<?php __HALT_COMPILER(); ?>'; 14 15$files = array(); 16$files['a'] = 'a'; 17$files['b'] = 'b'; 18$files['c'] = 'c'; 19 20include 'files/phar_test.inc'; 21 22$phar = new Phar($fname); 23var_dump($phar->getModified()); 24$phar->compressFiles(Phar::GZ); 25var_dump($phar->getModified()); 26?> 27--CLEAN-- 28<?php 29unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.phar.php'); 30?> 31--EXPECT-- 32bool(false) 33bool(true) 34