ru_php/ext/phar/tests/bug69324.phpt

17 lines
326 B
PHP

--TEST--
Bug #69324: Buffer Over-read in unserialize when parsing Phar
--EXTENSIONS--
phar
--FILE--
<?php
try {
$p = new Phar(__DIR__.'/bug69324.phar', 0);
$meta=$p->getMetadata();
var_dump($meta);
} catch(Exception $e) {
echo $e->getMessage();
}
?>
--EXPECTF--
internal corruption of phar "%s" (truncated manifest entry)