1--TEST-- 2Phar object: unset file (confirm disk file is changed) 3--EXTENSIONS-- 4phar 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--CLEAN-- 30<?php 31unlink(__DIR__ . '/files/phar_oo_012_confirm.phar.php'); 32__halt_compiler(); 33?> 34--EXPECT-- 35bool(true) 36hi 37bool(false) 38