xref: /PHP-7.4/ext/fileinfo/tests/bug67516.phpt (revision 26dfce7f)
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===DONE===
15--EXPECT--
16string(9) "image/gif"
17string(25) "image/gif; charset=binary"
18===DONE===
19