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_function_rename() function --SKIPIF-- <?php if(!extension_loaded("runkit")..
Decoded Output download
--TEST--
runkit_function_rename() function
--SKIPIF--
<?php if(!extension_loaded("runkit") || !RUNKIT_FEATURE_MANIPULATION) print "skip"; ?>
--FILE--
<?php
function runkitSample($n) {
echo "Runkit Sample: $n
";
}
$oldName = 'runkitSample';
$newName = 'runkitNewName';
runkitSample(1);
runkit_function_rename($oldName, $newName);
if (function_exists('runkitSample')) {
echo "Old function name still exists!
";
}
runkitNewName(2);
echo $oldName, "
";
echo $newName, "
";
runkitSample(2);
?>
--EXPECTF--
Runkit Sample: 1
Runkit Sample: 2
runkitSample
runkitNewName
Fatal error: %s runkit%sample() in %s on line %d
Did this file decode correctly?
Original Code
--TEST--
runkit_function_rename() function
--SKIPIF--
<?php if(!extension_loaded("runkit") || !RUNKIT_FEATURE_MANIPULATION) print "skip"; ?>
--FILE--
<?php
function runkitSample($n) {
echo "Runkit Sample: $n\n";
}
$oldName = 'runkitSample';
$newName = 'runkitNewName';
runkitSample(1);
runkit_function_rename($oldName, $newName);
if (function_exists('runkitSample')) {
echo "Old function name still exists!\n";
}
runkitNewName(2);
echo $oldName, "\n";
echo $newName, "\n";
runkitSample(2);
?>
--EXPECTF--
Runkit Sample: 1
Runkit Sample: 2
runkitSample
runkitNewName
Fatal error: %s runkit%sample() in %s on line %d
Function Calls
| extension_loaded | 1 |
Stats
| MD5 | 0ba6da77f64b4063873e17dfacbf9abd |
| Eval Count | 0 |
| Decode Time | 78 ms |