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 = __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');
30unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.phar.php');
31?>
32--EXPECT--
33bool(false)
34bool(true)
35