xref: /PHP-5.3/ext/phar/tests/tar/links6.phpt (revision eaf5d4c8)
1--TEST--
2Phar: test nested linked files
3--SKIPIF--
4<?php
5if (!extension_loaded("phar")) die("skip");
6?>
7--INI--
8phar.require_hash=0
9--FILE--
10<?php
11echo file_get_contents('phar://' . dirname(__FILE__) . '/files/links.phar.tar/link2');
12echo file_get_contents('phar://' . dirname(__FILE__) . '/files/links.phar.tar/link1');
13echo 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');
16fseek($a, 3);
17echo fread($a, 10);
18?>
19===DONE===
20--EXPECT--
21hi there
22
23hi there
24
25hi there
26
27there
28
29===DONE===