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-- Phar: bug #71498: Out-of-Bound Read in phar_parse_zipfile() --EXTENSIONS-- phar -..

Decoded Output download

--TEST--
Phar: bug #71498: Out-of-Bound Read in phar_parse_zipfile()
--EXTENSIONS--
phar
--FILE--
<?php
try {
$p = new PharData(__DIR__."/bug71498.zip");
} catch(UnexpectedValueException $e) {
    echo $e->getMessage();
}
?>

DONE
--EXPECTF--
phar error: end of central directory not found in zip-based phar "%s%ebug71498.zip"
DONE

Did this file decode correctly?

Original Code

--TEST--
Phar: bug #71498: Out-of-Bound Read in phar_parse_zipfile()
--EXTENSIONS--
phar
--FILE--
<?php
try {
$p = new PharData(__DIR__."/bug71498.zip");
} catch(UnexpectedValueException $e) {
    echo $e->getMessage();
}
?>

DONE
--EXPECTF--
phar error: end of central directory not found in zip-based phar "%s%ebug71498.zip"
DONE

Function Calls

None

Variables

None

Stats

MD5 5fe53cba67180fbca56b44c5964119b4
Eval Count 0
Decode Time 93 ms