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