xref: /PHP-8.0/ext/phar/tests/tar/links5.phpt (revision f8d79582)
1--TEST--
2Phar: tar with relative link to subdirectory file from subdirectory file
3--SKIPIF--
4<?php if (!extension_loaded("phar")) die("skip"); ?>
5--INI--
6phar.require_hash=0
7--FILE--
8<?php
9try {
10    $p = new PharData(__DIR__ . '/files/subdirlink.tar');
11} catch (Exception $e) {
12    echo $e->getMessage() . "\n";
13}
14echo $p['hi/test.txt']->getContent();
15echo $p['hi/link.txt']->getContent();
16?>
17--EXPECT--
18hi
19hi
20