1--TEST-- 2Phar: tar with hard link and symbolic link 3--SKIPIF-- 4<?php if (!extension_loaded("phar")) die("skip"); ?> 5--INI-- 6phar.require_hash=0 7--FILE-- 8<?php 9$fname = dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.tar'; 10copy(dirname(__FILE__) . '/files/links.tar', $fname); 11try { 12 $p = new PharData($fname); 13} catch (Exception $e) { 14 echo $e->getMessage() . "\n"; 15} 16var_dump($p['testit/link']->getContent()); 17var_dump($p['testit/hard']->getContent()); 18var_dump($p['testit/file']->getContent()); 19$p['testit/link'] = 'overwriting'; 20var_dump($p['testit/link']->getContent()); 21?> 22===DONE=== 23--CLEAN-- 24<?php 25unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.tar'); 26?> 27--EXPECT-- 28string(3) "hi 29" 30string(3) "hi 31" 32string(3) "hi 33" 34string(11) "overwriting" 35===DONE=== 36