xref: /PHP-7.1/ext/phar/tests/tar/links3.phpt (revision 4f9daeed)
1--TEST--
2Phar: tar with link to absolute path
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(dirname(__FILE__) . '/files/biglink.tar');
11} catch (Exception $e) {
12	echo $e->getMessage() . "\n";
13}
14echo $p['file.txt']->getContent();
15echo $p['my/file']->getContent();
16?>
17===DONE===
18--EXPECT--
19my file
20my file
21===DONE===
22