Annotation of embedaddon/php/ext/phar/tests/012.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Phar::mapPhar valid file
3: --SKIPIF--
4: <?php if (!extension_loaded("phar")) die("skip");?>
5: --INI--
6: phar.require_hash=0
7: --FILE--
8: <?php
9:
10: $fname = dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.phar.php';
11: $pname = 'phar://' . $fname;
12: $file = "<?php
13: Phar::mapPhar('hio');
14: __HALT_COMPILER(); ?>";
15:
16: $files = array();
17: $files['a'] = 'a';
18:
19: include 'files/phar_test.inc';
20: include $fname;
21:
22: echo file_get_contents('phar://hio/a');
23:
24: ?>
25: --CLEAN--
26: <?php unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar.php'); ?>
27: --EXPECT--
28: a
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>