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: copy-on-write test 10 [cache_list] --INI-- default_charset=UTF-8 phar.cache..
Decoded Output download
--TEST--
Phar: copy-on-write test 10 [cache_list]
--INI--
default_charset=UTF-8
phar.cache_list={PWD}/copyonwrite10.phar.php
phar.readonly=0
--EXTENSIONS--
phar
--FILE_EXTERNAL--
files/write10.phar
--EXPECT--
string(214) "<?php
$p = new Phar(__FILE__);
var_dump($p->getStub());
$p2 = new Phar(__FILE__);
$a = fopen("phar://" . __FILE__ . "/test.txt", "r");
$p->setStub($a);
echo $p2->getStub(),"
";
echo "ok
";
__HALT_COMPILER(); ?>
"
<?php __HALT_COMPILER(); ?>
ok
Did this file decode correctly?
Original Code
--TEST--
Phar: copy-on-write test 10 [cache_list]
--INI--
default_charset=UTF-8
phar.cache_list={PWD}/copyonwrite10.phar.php
phar.readonly=0
--EXTENSIONS--
phar
--FILE_EXTERNAL--
files/write10.phar
--EXPECT--
string(214) "<?php
$p = new Phar(__FILE__);
var_dump($p->getStub());
$p2 = new Phar(__FILE__);
$a = fopen("phar://" . __FILE__ . "/test.txt", "r");
$p->setStub($a);
echo $p2->getStub(),"\n";
echo "ok\n";
__HALT_COMPILER(); ?>
"
<?php __HALT_COMPILER(); ?>
ok
Function Calls
None |
Stats
MD5 | 18b70f9d827050a8ea5a2e14f28ccb6c |
Eval Count | 0 |
Decode Time | 88 ms |