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