2008-10-11 22:12:07 +00:00
|
|
|
--TEST--
|
|
|
|
Phar: test nested linked files
|
|
|
|
--SKIPIF--
|
|
|
|
<?php
|
|
|
|
if (!extension_loaded("phar")) die("skip");
|
|
|
|
?>
|
2008-10-12 18:54:00 +00:00
|
|
|
--INI--
|
|
|
|
phar.require_hash=0
|
2008-10-11 22:12:07 +00:00
|
|
|
--FILE--
|
|
|
|
<?php
|
|
|
|
echo file_get_contents('phar://' . dirname(__FILE__) . '/files/links.phar.tar/link2');
|
|
|
|
echo file_get_contents('phar://' . dirname(__FILE__) . '/files/links.phar.tar/link1');
|
|
|
|
echo file_get_contents('phar://' . dirname(__FILE__) . '/files/links.phar.tar/testit.txt');
|
2008-10-11 22:20:57 +00:00
|
|
|
|
|
|
|
$a = fopen('phar://' . dirname(__FILE__) . '/files/links.phar.tar/link2', 'r');
|
|
|
|
fseek($a, 3);
|
|
|
|
echo fread($a, 10);
|
2008-10-11 22:12:07 +00:00
|
|
|
?>
|
|
|
|
===DONE===
|
|
|
|
--EXPECT--
|
|
|
|
hi there
|
|
|
|
|
|
|
|
hi there
|
|
|
|
|
|
|
|
hi there
|
|
|
|
|
2008-10-11 22:20:57 +00:00
|
|
|
there
|
|
|
|
|
2008-10-11 22:12:07 +00:00
|
|
|
===DONE===
|