summaryrefslogtreecommitdiff
path: root/ext/fileinfo/tests/bug67516.phpt
blob: d4f72877e282a6374f74dd6aad691f24bf26a869 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--TEST--
Bug #67516 wrong mimetypes with finfo_file(filename, FILEINFO_MIME_TYPE)
--SKIPIF--
<?php
if (!class_exists('finfo'))
	die('skip no fileinfo extension');
--FILE--
<?php

$f = new finfo;
var_dump($f->file(dirname(__FILE__) . "/bug67516.gif", FILEINFO_MIME_TYPE));
var_dump($f->file(dirname(__FILE__) . "/bug67516.gif", FILEINFO_MIME));
?>
===DONE===
--EXPECT--
string(9) "image/gif"
string(25) "image/gif; charset=binary"
===DONE===