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-- array_map() and exceptions in the callback --FILE-- <?php $a = array(1,2,3); fu..
Decoded Output download
--TEST--
array_map() and exceptions in the callback
--FILE--
<?php
$a = array(1,2,3);
function foo() {
throw new exception(1);
}
try {
array_map("foo", $a, array(2,3));
} catch (Exception $e) {
var_dump("exception caught!");
}
echo "Done
";
?>
--EXPECT--
string(17) "exception caught!"
Done
Did this file decode correctly?
Original Code
--TEST--
array_map() and exceptions in the callback
--FILE--
<?php
$a = array(1,2,3);
function foo() {
throw new exception(1);
}
try {
array_map("foo", $a, array(2,3));
} catch (Exception $e) {
var_dump("exception caught!");
}
echo "Done\n";
?>
--EXPECT--
string(17) "exception caught!"
Done
Function Calls
None |
Stats
MD5 | 06fc13082249b9221afe088f885f0d6e |
Eval Count | 0 |
Decode Time | 105 ms |