xref: /PHP-8.0/ext/fileinfo/tests/bug68731.phpt (revision c5401854)
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(__DIR__ . '/68731.gif');
10    $finfo = finfo_open(FILEINFO_MIME_TYPE);
11    echo finfo_buffer($finfo, $buffer);
12?>
13--EXPECT--
14image/gif
15