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