1
0
mirror of https://github.com/php/php-src.git synced 2026-04-20 14:31:06 +02:00
Files
archived-php-src/ext/phar/tests/tar/bug71504.phpt
2018-02-04 16:57:08 +01:00

18 lines
447 B
PHP

--TEST--
Bug #71504: Parsing of tar file with duplicate filenames causes memory leak
--SKIPIF--
<?php if (!extension_loaded('phar')) die('skip'); ?>
<?php if (!extension_loaded("zlib")) die("skip zlib not available"); ?>
--FILE--
<?php
$fname = str_replace('\\', '/', dirname(__FILE__) . '/files/HTML_CSS-1.5.4.tgz');
try {
$tar = new PharData($fname);
} catch(Exception $e) {
echo $e->getMessage() . "\n";
}
?>
===DONE===
--EXPECT--
===DONE===