summaryrefslogtreecommitdiff
path: root/ext/fileinfo/tests/bug68731.phpt
blob: c15b83c951f173c3a84cee23bbdfce94736a2ee2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--TEST--
Bug #68731 finfo_buffer doesn't extract the correct mime with some gifs
--SKIPIF--
<?php
if (!class_exists('finfo'))
	die('skip no fileinfo extension');
--FILE--
<?php
    $buffer = file_get_contents(__DIR__ . '/68731.gif');
    $finfo = finfo_open(FILEINFO_MIME_TYPE);
    echo finfo_buffer($finfo, $buffer);
?>
--EXPECT--
image/gif