mirror of
https://github.com/php/php-src.git
synced 2024-10-21 00:12:34 +00:00
4f9daeed11
not have a signature, but can have one set via setSignatureAlgorithm()
22 lines
436 B
PHP
22 lines
436 B
PHP
--TEST--
|
|
Phar: tar with relative link to subdirectory file from subdirectory file
|
|
--SKIPIF--
|
|
<?php if (!extension_loaded("phar")) die("skip"); ?>
|
|
--INI--
|
|
phar.require_hash=0
|
|
--FILE--
|
|
<?php
|
|
try {
|
|
$p = new PharData(dirname(__FILE__) . '/files/subdirlink.tar');
|
|
} catch (Exception $e) {
|
|
echo $e->getMessage() . "\n";
|
|
}
|
|
echo $p['hi/test.txt']->getContent();
|
|
echo $p['hi/link.txt']->getContent();
|
|
?>
|
|
===DONE===
|
|
--EXPECT--
|
|
hi
|
|
hi
|
|
===DONE===
|