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-- runkit_import() imports function with reflection --SKIPIF-- <?php if(!extension_l..
Decoded Output download
--TEST--
runkit_import() imports function with reflection
--SKIPIF--
<?php if(!extension_loaded("runkit") || !RUNKIT_FEATURE_MANIPULATION) print "skip"; ?>
--FILE--
<?php
function runkitFunction($param) {
echo "Runkit function
";
}
$reflFunc = new ReflectionFunction('runkitFunction');
runkit_import('runkit_import_function_and_reflection.inc', RUNKIT_IMPORT_FUNCTIONS | RUNKIT_IMPORT_OVERRIDE);
var_dump($reflFunc);
$reflFunc->invoke("test");
?>
--EXPECTF--
object(ReflectionFunction)#%d (1) {
["name"]=>
string(30) "__function_removed_by_runkit__"
}
Fatal error: __function_removed_by_runkit__(): A function removed by runkit was somehow invoked in %s on line %d
Did this file decode correctly?
Original Code
--TEST--
runkit_import() imports function with reflection
--SKIPIF--
<?php if(!extension_loaded("runkit") || !RUNKIT_FEATURE_MANIPULATION) print "skip"; ?>
--FILE--
<?php
function runkitFunction($param) {
echo "Runkit function\n";
}
$reflFunc = new ReflectionFunction('runkitFunction');
runkit_import('runkit_import_function_and_reflection.inc', RUNKIT_IMPORT_FUNCTIONS | RUNKIT_IMPORT_OVERRIDE);
var_dump($reflFunc);
$reflFunc->invoke("test");
?>
--EXPECTF--
object(ReflectionFunction)#%d (1) {
["name"]=>
string(30) "__function_removed_by_runkit__"
}
Fatal error: __function_removed_by_runkit__(): A function removed by runkit was somehow invoked in %s on line %d
Function Calls
extension_loaded | 1 |
Stats
MD5 | 3261177d69b7fc8584d8ec79f6e63b5f |
Eval Count | 0 |
Decode Time | 101 ms |