dis-bench / src /php /php-src /ext /fileinfo /tests /bug61173.phpt
meddyrat's picture
Replace repository contents with the original corrected artifact
1e94262
Raw History Blame Contribute Delete
305 Bytes
--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