dis-bench / src /php /php-src /ext /fileinfo /tests /bug67516.phpt
meddyrat's picture
Replace repository contents with the original corrected artifact
1e94262
Raw History Blame Contribute Delete
342 Bytes
--TEST--
Bug #67516 wrong mimetypes with finfo_file(filename, FILEINFO_MIME_TYPE)
--EXTENSIONS--
fileinfo
--FILE--
<?php
$f = new finfo;
var_dump($f->file(__DIR__ . "/bug67516.gif", FILEINFO_MIME_TYPE));
var_dump($f->file(__DIR__ . "/bug67516.gif", FILEINFO_MIME));
?>
--EXPECT--
string(9) "image/gif"
string(25) "image/gif; charset=binary"