xref: /PHP-5.3/ext/phar/tests/phar_oo_010.phpt (revision 610c7fbe)
1--TEST--
2Phar object: ArrayAccess and isset
3--SKIPIF--
4<?php if (!extension_loaded('phar')) die('skip'); ?>
5<?php if (!extension_loaded("spl")) die("skip SPL not available"); ?>
6--INI--
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
17var_dump(isset($phar['a.php']));
18var_dump(isset($phar['b.php']));
19var_dump(isset($phar['b/c.php']));
20var_dump(isset($phar['b/d.php']));
21var_dump(isset($phar['e.php']));
22
23?>
24===DIR===
25<?php
26var_dump(isset($phar['b']));
27?>
28===NA===
29<?php
30var_dump(isset($phar['a']));
31var_dump(isset($phar['b/c']));
32var_dump(isset($phar[12]));
33var_dump(isset($phar['b']));
34
35?>
36===DONE===
37--CLEAN--
38<?php
39unlink(dirname(__FILE__) . '/files/phar_oo_test.phar.php');
40__halt_compiler();
41?>
42--EXPECTF--
43bool(true)
44bool(true)
45bool(true)
46bool(true)
47bool(true)
48===DIR===
49bool(true)
50===NA===
51bool(false)
52bool(false)
53bool(false)
54bool(true)
55===DONE===
56