mirror of
https://github.com/php/php-src.git
synced 2024-10-21 08:22:42 +00:00
20 lines
372 B
PHP
20 lines
372 B
PHP
--TEST--
|
|
Phar: tar with link to absolute path
|
|
--SKIPIF--
|
|
<?php if (!extension_loaded("phar")) die("skip"); ?>
|
|
--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===
|