1
0
mirror of https://github.com/php/php-src.git synced 2026-04-29 19:23:22 +02:00
Files
archived-php-src/ext/phar/tests/tar/links6.phpt
T
Fabien Villepinte a555cc0b3d Clean DONE tags from tests
Remove most of the `===DONE===` tags and its variations.
Keep `===DONE===` if the test output otherwise becomes empty.

Closes GH-4872.
2019-11-07 21:31:47 +01:00

28 lines
539 B
PHP

--TEST--
Phar: test nested linked files
--SKIPIF--
<?php
if (!extension_loaded("phar")) die("skip");
?>
--INI--
phar.require_hash=0
--FILE--
<?php
echo file_get_contents('phar://' . __DIR__ . '/files/links.phar.tar/link2');
echo file_get_contents('phar://' . __DIR__ . '/files/links.phar.tar/link1');
echo file_get_contents('phar://' . __DIR__ . '/files/links.phar.tar/testit.txt');
$a = fopen('phar://' . __DIR__ . '/files/links.phar.tar/link2', 'r');
fseek($a, 3);
echo fread($a, 10);
?>
--EXPECT--
hi there
hi there
hi there
there