1--TEST--
2Phar object: unset file (confirm disk file is changed)
3--SKIPIF--
4<?php if (!extension_loaded('phar')) die('skip'); ?>
5--INI--
6phar.readonly=0
7phar.require_hash=0
8--FILE--
9<?php
10
11$pharconfig = 0;
12
13require_once 'files/phar_oo_test.inc';
14
15$phar = new Phar($fname);
16$phar->setInfoClass('SplFileObject');
17
18$phar['f.php'] = 'hi';
19var_dump(isset($phar['f.php']));
20echo $phar['f.php'];
21echo "\n";
22$md5 = md5_file($fname);
23unset($phar['f.php']);
24$md52 = md5_file($fname);
25if ($md5 == $md52) echo 'File on disk has not changed';
26var_dump(isset($phar['f.php']));
27
28?>
29===DONE===
30--CLEAN--
31<?php
32unlink(dirname(__FILE__) . '/files/phar_oo_012_confirm.phar.php');
33__halt_compiler();
34?>
35--EXPECT--
36bool(true)
37hi
38bool(false)
39===DONE===
40