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: unset file --EXTENSIONS-- phar --INI-- phar.readonly=0 phar.require_..

Decoded Output download

--TEST--
Phar object: unset 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['f.php'] = 'hi';
var_dump(isset($phar['f.php']));
echo $phar['f.php'];
echo "
";
unset($phar['f.php']);
var_dump(isset($phar['f.php']));

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

Did this file decode correctly?

Original Code

--TEST--
Phar object: unset 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['f.php'] = 'hi';
var_dump(isset($phar['f.php']));
echo $phar['f.php'];
echo "\n";
unset($phar['f.php']);
var_dump(isset($phar['f.php']));

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

Function Calls

None

Variables

$pharconfig 0

Stats

MD5 cbd87fb715936279c3d9bbd659f99ae1
Eval Count 0
Decode Time 132 ms