mirror of
https://github.com/php/php-src.git
synced 2024-09-23 10:57:26 +00:00
ded3d984c6
EXPECTF logic in run-tests.php is considerable, so let's avoid it.
18 lines
354 B
PHP
18 lines
354 B
PHP
--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
|