xref: /PHP-8.3/ext/phar/tests/tar/links4.phpt (revision 74859783)
1--TEST--
2Phar: tar with link to root directory file from root directory file
3--EXTENSIONS--
4phar
5--INI--
6phar.require_hash=0
7--FILE--
8<?php
9try {
10    $p = new PharData(__DIR__ . '/files/tinylink.tar');
11} catch (Exception $e) {
12    echo $e->getMessage() . "\n";
13}
14echo $p['file.txt']->getContent();
15echo $p['link.txt']->getContent();
16?>
17--EXPECT--
18hi
19hi
20