Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

--TEST-- Bug #69324: Buffer Over-read in unserialize when parsing Phar --EXTENSIONS-- phar..

Decoded Output download

--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)

Did this file decode correctly?

Original Code

--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)

Function Calls

None

Variables

None

Stats

MD5 f772d846145df185d14139e3dd17fa4a
Eval Count 0
Decode Time 95 ms