xref: /PHP-7.3/ext/phar/tests/phar_oo_012.phpt (revision 17ccbeec)
1--TEST--
2Phar object: unset file
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";
22unset($phar['f.php']);
23var_dump(isset($phar['f.php']));
24
25?>
26===DONE===
27--CLEAN--
28<?php
29unlink(dirname(__FILE__) . '/files/phar_oo_012.phar.php');
30__halt_compiler();
31?>
32--EXPECT--
33bool(true)
34hi
35bool(false)
36===DONE===
37