summaryrefslogtreecommitdiff
path: root/ext/phar/tests/tar/links3.phpt
blob: 5c41a00ace5e22da4f675e2443c5c84530592eed (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(__DIR__ . '/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===