xref: /PHP-8.3/ext/phar/tests/bug79503.phpt (revision 74859783)
1--TEST--
2Bug #79503 (Memory leak on duplicate metadata)
3--EXTENSIONS--
4phar
5--FILE--
6<?php
7try {
8    new Phar(__DIR__ . '/bug79503.phar');
9} catch (UnexpectedValueException $ex) {
10    echo $ex->getMessage();
11}
12?>
13--EXPECTF--
14phar error: tar-based phar "%s%ebug79503.phar" has invalid metadata in magic file ".phar/.metadata.bin"
15