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: test ini_set with readonly and require_hash enabled --EXTENSIONS-- phar --I..
Decoded Output download
--TEST--
Phar: test ini_set with readonly and require_hash enabled
--EXTENSIONS--
phar
--INI--
phar.require_hash=1
phar.readonly=1
--FILE--
<?php
var_dump(ini_set('phar.require_hash', 1));
var_dump(ini_set('phar.readonly', 1));
var_dump(ini_get('phar.require_hash'));
var_dump(ini_get('phar.readonly'));
var_dump(ini_set('phar.require_hash', 0));
var_dump(ini_set('phar.readonly', 0));
var_dump(ini_get('phar.require_hash'));
var_dump(ini_get('phar.readonly'));
__HALT_COMPILER();
?>
--EXPECT--
string(1) "1"
string(1) "1"
string(1) "1"
string(1) "1"
bool(false)
bool(false)
string(1) "1"
string(1) "1"
Did this file decode correctly?
Original Code
--TEST--
Phar: test ini_set with readonly and require_hash enabled
--EXTENSIONS--
phar
--INI--
phar.require_hash=1
phar.readonly=1
--FILE--
<?php
var_dump(ini_set('phar.require_hash', 1));
var_dump(ini_set('phar.readonly', 1));
var_dump(ini_get('phar.require_hash'));
var_dump(ini_get('phar.readonly'));
var_dump(ini_set('phar.require_hash', 0));
var_dump(ini_set('phar.readonly', 0));
var_dump(ini_get('phar.require_hash'));
var_dump(ini_get('phar.readonly'));
__HALT_COMPILER();
?>
--EXPECT--
string(1) "1"
string(1) "1"
string(1) "1"
string(1) "1"
bool(false)
bool(false)
string(1) "1"
string(1) "1"
Function Calls
ini_set | 1 |
var_dump | 1 |
Stats
MD5 | 59bc51a10bdb505867e532c7fd531785 |
Eval Count | 0 |
Decode Time | 123 ms |