1--TEST-- 2Bug #61173: Unable to detect error from finfo constructor 3--SKIPIF-- 4<?php 5if (!class_exists('finfo')) 6 die('skip no fileinfo extension'); 7--FILE-- 8<?php 9 10try { 11 $finfo = new finfo(1, '', false); 12 var_dump($finfo); 13} catch (TypeError $e) { 14 echo $e->getMessage(), "\n"; 15} 16--EXPECTF-- 17finfo::finfo() expects at most 2 parameters, 3 given 18