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: corrupted zip (truncated filename record) --EXTENSIONS-- phar --FILE-- <?ph..
Decoded Output download
--TEST--
Phar: corrupted zip (truncated filename record)
--EXTENSIONS--
phar
--FILE--
<?php
try {
new PharData(__DIR__ . '/files/truncfilename.zip');
} catch (Exception $e) {
echo $e->getMessage() . "
";
}
?>
--EXPECTF--
phar error: corrupted central directory entry, no magic signature in zip-based phar "%struncfilename.zip"
Did this file decode correctly?
Original Code
--TEST--
Phar: corrupted zip (truncated filename record)
--EXTENSIONS--
phar
--FILE--
<?php
try {
new PharData(__DIR__ . '/files/truncfilename.zip');
} catch (Exception $e) {
echo $e->getMessage() . "\n";
}
?>
--EXPECTF--
phar error: corrupted central directory entry, no magic signature in zip-based phar "%struncfilename.zip"
Function Calls
None |
Stats
MD5 | 3dc0c2822f5acdd859e465371c99f538 |
Eval Count | 0 |
Decode Time | 105 ms |