summaryrefslogtreecommitdiff
path: root/ext/phar/tests/tar/links3.phpt
blob: def399e2603c9a2bc0cbbac88ad4b2b28d22f4cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--TEST--
Phar: tar with link to absolute path
--SKIPIF--
<?php if (!extension_loaded("phar")) die("skip"); ?>
--INI--
phar.require_hash=0
--FILE--
<?php
try {
	$p = new PharData(dirname(__FILE__) . '/files/biglink.tar');
} catch (Exception $e) {
	echo $e->getMessage() . "\n";
}
echo $p['file.txt']->getContent();
echo $p['my/file']->getContent();
?>
===DONE===
--EXPECT--
my file
my file
===DONE===