xref: /PHP-8.0/ext/phar/tests/tar/links6.phpt (revision a555cc0b)
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://' . __DIR__ . '/files/links.phar.tar/link2');
12echo file_get_contents('phar://' . __DIR__ . '/files/links.phar.tar/link1');
13echo file_get_contents('phar://' . __DIR__ . '/files/links.phar.tar/testit.txt');
14
15$a = fopen('phar://' . __DIR__ . '/files/links.phar.tar/link2', 'r');
16fseek($a, 3);
17echo fread($a, 10);
18?>
19--EXPECT--
20hi there
21
22hi there
23
24hi there
25
26there
27
28