Annotation of embedaddon/php/ext/phar/tests/phar_oo_012.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Phar object: unset file
3: --SKIPIF--
4: <?php if (!extension_loaded('phar')) die('skip'); ?>
5: <?php if (!extension_loaded("spl")) die("skip SPL not available"); ?>
6: --INI--
7: phar.readonly=0
8: phar.require_hash=0
9: --FILE--
10: <?php
11:
12: $pharconfig = 0;
13:
14: require_once 'files/phar_oo_test.inc';
15:
16: $phar = new Phar($fname);
17: $phar->setInfoClass('SplFileObject');
18:
19: $phar['f.php'] = 'hi';
20: var_dump(isset($phar['f.php']));
21: echo $phar['f.php'];
22: echo "\n";
23: unset($phar['f.php']);
24: var_dump(isset($phar['f.php']));
25:
26: ?>
27: ===DONE===
28: --CLEAN--
29: <?php
30: unlink(dirname(__FILE__) . '/files/phar_oo_test.phar.php');
31: __halt_compiler();
32: ?>
33: --EXPECT--
34: bool(true)
35: hi
36: bool(false)
37: ===DONE===
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>