1
0
mirror of https://github.com/php/php-src.git synced 2026-04-19 05:51:02 +02:00
Files
archived-php-src/ext/phar/tests/tar/bug64343.phpt
Michael Wallner ef52e44053 Fixed bug 64343
PharData::extractTo fails for tarball created by BSD tar

Phar did not know about PAX style global/file headers.
Skip them, to be able to read the contents of those archives.
2015-03-30 13:20:09 +02:00

17 lines
252 B
PHP

--TEST--
Bug #64343 (phar cannot open tars with pax headers)
--SKIPIF--
<?php if (!extension_loaded("phar")) die("skip"); ?>
--FILE--
<?php
echo "Test\n";
$phar = new PharData(__DIR__."/files/bug64343.tar");
?>
===DONE===
--EXPECT--
Test
===DONE===