summaryrefslogtreecommitdiff
path: root/ext/fileinfo/tests/bug67516.phpt
blob: 48cd25277e7195d72c1b060ec62436a5bfd05bdc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--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===