xref: /PHP-8.2/ext/phar/tests/tar/bug71504.phpt (revision 74859783)
1--TEST--
2Bug #71504: Parsing of tar file with duplicate filenames causes memory leak
3--EXTENSIONS--
4phar
5zlib
6--FILE--
7<?php
8$fname = str_replace('\\', '/', __DIR__ . '/files/HTML_CSS-1.5.4.tgz');
9try {
10    $tar = new PharData($fname);
11} catch(Exception $e) {
12    echo $e->getMessage() . "\n";
13}
14?>
15===DONE===
16--EXPECT--
17===DONE===
18