xref: /PHP-8.2/ext/phar/tests/tar/links6.phpt (revision 74859783)
1--TEST--
2Phar: test nested linked files
3--EXTENSIONS--
4phar
5--INI--
6phar.require_hash=0
7--FILE--
8<?php
9echo file_get_contents('phar://' . __DIR__ . '/files/links.phar.tar/link2');
10echo file_get_contents('phar://' . __DIR__ . '/files/links.phar.tar/link1');
11echo file_get_contents('phar://' . __DIR__ . '/files/links.phar.tar/testit.txt');
12
13$a = fopen('phar://' . __DIR__ . '/files/links.phar.tar/link2', 'r');
14fseek($a, 3);
15echo fread($a, 10);
16?>
17--EXPECT--
18hi there
19
20hi there
21
22hi there
23
24there
25
26