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 object: add file --EXTENSIONS-- phar --INI-- phar.readonly=0 phar.require_ha..

Decoded Output download

--TEST--
Phar object: add file
--EXTENSIONS--
phar
--INI--
phar.readonly=0
phar.require_hash=0
--FILE--
<?php

$pharconfig = 0;

require_once 'files/phar_oo_test.inc';

$phar = new Phar($fname);
$phar->setInfoClass('SplFileObject');

$phar['hi/f.php'] = 'hi';
var_dump(isset($phar['hi']));
var_dump(isset($phar['hi/f.php']));
echo $phar['hi/f.php'];
echo "
";

?>
--CLEAN--
<?php
unlink(__DIR__ . '/files/phar_oo_011.phar.php');
                ?>
?>
--EXPECT--
bool(true)
bool(true)
hi

Did this file decode correctly?

Original Code

--TEST--
Phar object: add file
--EXTENSIONS--
phar
--INI--
phar.readonly=0
phar.require_hash=0
--FILE--
<?php

$pharconfig = 0;

require_once 'files/phar_oo_test.inc';

$phar = new Phar($fname);
$phar->setInfoClass('SplFileObject');

$phar['hi/f.php'] = 'hi';
var_dump(isset($phar['hi']));
var_dump(isset($phar['hi/f.php']));
echo $phar['hi/f.php'];
echo "\n";

?>
--CLEAN--
<?php
unlink(__DIR__ . '/files/phar_oo_011.phar.php');
__halt_compiler();
?>
--EXPECT--
bool(true)
bool(true)
hi

Function Calls

None

Variables

$pharconfig 0

Stats

MD5 ef3f4ccb7d15952e661bfa0e3432247f
Eval Count 0
Decode Time 104 ms