blob: 638c47f69c5c112069997945ba473cc7974bc41d (
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 root directory file from root directory file
--SKIPIF--
<?php if (!extension_loaded("phar")) die("skip"); ?>
--INI--
phar.require_hash=0
--FILE--
<?php
try {
$p = new PharData(__DIR__ . '/files/tinylink.tar');
} catch (Exception $e) {
echo $e->getMessage() . "\n";
}
echo $p['file.txt']->getContent();
echo $p['link.txt']->getContent();
?>
===DONE===
--EXPECT--
hi
hi
===DONE===
|