summaryrefslogtreecommitdiff
path: root/ext/fileinfo/tests/bug61173.phpt
blob: 9fbf48b2ecb958f9e3c53304922bb8d9dbb004a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--TEST--
Bug #61173: Unable to detect error from finfo constructor
--SKIPIF--
<?php
if (!class_exists('finfo'))
	die('skip no fileinfo extension');
--FILE--
<?php

try {
    $finfo = new finfo(1, '', false);
    var_dump($finfo);
} catch (TypeError $e) {
    echo $e->getMessage(), "\n";
}
--EXPECT--
finfo::finfo() expects at most 2 parameters, 3 given