php-src/ext/phar/tests/tar/links5.phpt
2008-05-11 23:07:12 +00:00

20 lines
408 B
PHP

--TEST--
Phar: tar with relative link to subdirectory file from subdirectory file
--SKIPIF--
<?php if (!extension_loaded("phar")) die("skip"); ?>
--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===