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