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