xref: /PHP-8.3/ext/phar/tests/bug69324.phpt (revision 74859783)
1--TEST--
2Bug #69324: Buffer Over-read in unserialize when parsing Phar
3--EXTENSIONS--
4phar
5--FILE--
6<?php
7try {
8$p = new Phar(__DIR__.'/bug69324.phar', 0);
9$meta=$p->getMetadata();
10var_dump($meta);
11} catch(Exception $e) {
12    echo $e->getMessage();
13}
14?>
15--EXPECTF--
16internal corruption of phar "%s" (truncated manifest entry)
17