summaryrefslogtreecommitdiff
path: root/ext/phar/tests/bug79503.phpt
blob: 874330fac743c75fe8f7f54958e692f035e73b95 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--TEST--
Bug #79503 (Memory leak on duplicate metadata)
--SKIPIF--
<?php
if (!extension_loaded('phar')) die('skip phar extension not available');
?>
--FILE--
<?php
try {
    new Phar(__DIR__ . '/bug79503.phar');
} catch (UnexpectedValueException $ex) {
    echo $ex->getMessage();
}
?>
--EXPECTF--
phar error: tar-based phar "%s%ebug79503.phar" has invalid metadata in magic file ".phar/.metadata.bin"