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 #77931: Warning for array_map mentions wrong type --FILE-- <?php try { a..
Decoded Output download
--TEST--
Bug #77931: Warning for array_map mentions wrong type
--FILE--
<?php
try {
array_map('trim', array(), 1);
} catch (TypeError $e) {
echo $e->getMessage(), "
";
}
try {
array_map('trim', array(), array(), true);
} catch (TypeError $e) {
echo $e->getMessage(), "
";
}
try {
array_map('trim', array(), array(), array(), null);
} catch (TypeError $e) {
echo $e->getMessage(), "
";
}
?>
--EXPECT--
array_map(): Argument #3 must be of type array, int given
array_map(): Argument #4 must be of type array, bool given
array_map(): Argument #5 must be of type array, null given
Did this file decode correctly?
Original Code
--TEST--
Bug #77931: Warning for array_map mentions wrong type
--FILE--
<?php
try {
array_map('trim', array(), 1);
} catch (TypeError $e) {
echo $e->getMessage(), "\n";
}
try {
array_map('trim', array(), array(), true);
} catch (TypeError $e) {
echo $e->getMessage(), "\n";
}
try {
array_map('trim', array(), array(), array(), null);
} catch (TypeError $e) {
echo $e->getMessage(), "\n";
}
?>
--EXPECT--
array_map(): Argument #3 must be of type array, int given
array_map(): Argument #4 must be of type array, bool given
array_map(): Argument #5 must be of type array, null given
Function Calls
None |
Stats
MD5 | a1ccf11141dd8ba2cfd0cf3dfa0d66cc |
Eval Count | 0 |
Decode Time | 108 ms |