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 #61173: Unable to detect error from finfo constructor --EXTENSIONS-- fileinfo..
Decoded Output download
--TEST--
Bug #61173: Unable to detect error from finfo constructor
--EXTENSIONS--
fileinfo
--FILE--
<?php
try {
$finfo = new finfo(1, '', false);
var_dump($finfo);
} catch (TypeError $e) {
echo $e->getMessage(), "
";
}
?>
--EXPECT--
finfo::__construct() expects at most 2 arguments, 3 given
Did this file decode correctly?
Original Code
--TEST--
Bug #61173: Unable to detect error from finfo constructor
--EXTENSIONS--
fileinfo
--FILE--
<?php
try {
$finfo = new finfo(1, '', false);
var_dump($finfo);
} catch (TypeError $e) {
echo $e->getMessage(), "\n";
}
?>
--EXPECT--
finfo::__construct() expects at most 2 arguments, 3 given
Function Calls
None |
Stats
MD5 | 50992baf72d1a9eb55fca09f9c58cec9 |
Eval Count | 0 |
Decode Time | 99 ms |