Annotation of embedaddon/php/ext/phar/tests/tar/links6.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Phar: test nested linked files
3: --SKIPIF--
4: <?php
5: if (!extension_loaded("phar")) die("skip");
6: ?>
7: --INI--
8: phar.require_hash=0
9: --FILE--
10: <?php
11: echo file_get_contents('phar://' . dirname(__FILE__) . '/files/links.phar.tar/link2');
12: echo file_get_contents('phar://' . dirname(__FILE__) . '/files/links.phar.tar/link1');
13: echo file_get_contents('phar://' . dirname(__FILE__) . '/files/links.phar.tar/testit.txt');
14:
15: $a = fopen('phar://' . dirname(__FILE__) . '/files/links.phar.tar/link2', 'r');
16: fseek($a, 3);
17: echo fread($a, 10);
18: ?>
19: ===DONE===
20: --EXPECT--
21: hi there
22:
23: hi there
24:
25: hi there
26:
27: there
28:
29: ===DONE===
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>