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-- Bug #31190 (exception in call_user_func_array()) --FILE-- <?php class test { ..
Decoded Output download
--TEST--
Bug #31190 (exception in call_user_func_array())
--FILE--
<?php
class test {
function throwException() { throw new Exception("Hello World!
");
} }
$array = array(new test(), 'throwException');
try {
call_user_func($array, 1, 2);
} catch (Exception $e) {
echo $e->getMessage();
}
try {
call_user_func_array($array, array(1, 2));
} catch (Exception $e) {
echo $e->getMessage();
}
?>
--EXPECT--
Hello World!
Hello World!
Did this file decode correctly?
Original Code
--TEST--
Bug #31190 (exception in call_user_func_array())
--FILE--
<?php
class test {
function throwException() { throw new Exception("Hello World!\n");
} }
$array = array(new test(), 'throwException');
try {
call_user_func($array, 1, 2);
} catch (Exception $e) {
echo $e->getMessage();
}
try {
call_user_func_array($array, array(1, 2));
} catch (Exception $e) {
echo $e->getMessage();
}
?>
--EXPECT--
Hello World!
Hello World!
Function Calls
None |
Stats
MD5 | ea9b76fda23117ee184ccd7f0a9caa19 |
Eval Count | 0 |
Decode Time | 84 ms |