1--TEST-- 2Bug #67516 wrong mimetypes with finfo_file(filename, FILEINFO_MIME_TYPE) 3--SKIPIF-- 4<?php 5if (!class_exists('finfo')) 6 die('skip no fileinfo extension'); 7--FILE-- 8<?php 9 10$f = new finfo; 11var_dump($f->file(__DIR__ . "/bug67516.gif", FILEINFO_MIME_TYPE)); 12var_dump($f->file(__DIR__ . "/bug67516.gif", FILEINFO_MIME)); 13?> 14--EXPECT-- 15string(9) "image/gif" 16string(25) "image/gif; charset=binary" 17