mirror of
https://github.com/php/php-src.git
synced 2024-10-04 00:06:16 +00:00
3d858f4aa9
this also resulted in a major fix for mounted directories, which were recycling the 'link' field which could cause stupid conflicts with actual links, so move that to new 'tmp' field.
29 lines
564 B
PHP
29 lines
564 B
PHP
--TEST--
|
|
Phar: tar with hard link and symbolic link
|
|
--SKIPIF--
|
|
<?php if (!extension_loaded("phar")) die("skip"); ?>
|
|
--FILE--
|
|
<?php
|
|
try {
|
|
$p = new PharData(dirname(__FILE__) . '/files/links.tar');
|
|
} catch (Exception $e) {
|
|
echo $e->getMessage() . "\n";
|
|
}
|
|
var_dump($p['testit/link']->getContent());
|
|
var_dump($p['testit/hard']->getContent());
|
|
var_dump($p['testit/file']->getContent());
|
|
?>
|
|
===DONE===
|
|
--CLEAN--
|
|
<?php
|
|
unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.tar');
|
|
?>
|
|
--EXPECT--
|
|
string(3) "hi
|
|
"
|
|
string(3) "hi
|
|
"
|
|
string(3) "hi
|
|
"
|
|
===DONE===
|