1--TEST--
2Phar::getModified()
3--SKIPIF--
4<?php if (!extension_loaded("phar")) die("skip"); ?>
5<?php if (!extension_loaded("zlib")) die("skip zlib not present"); ?>
6--INI--
7phar.require_hash=0
8phar.readonly=0
9--FILE--
10<?php
11$fname = dirname(__FILE__) . '/' . 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===DONE===
28--CLEAN--
29<?php
30unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar');
31unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar.php');
32?>
33--EXPECTF--
34bool(false)
35bool(true)
36===DONE===
37