ru_php/ext/fileinfo/tests/bug68731.phpt

13 lines
286 B
PHP

--TEST--
Bug #68731 finfo_buffer doesn't extract the correct mime with some gifs
--EXTENSIONS--
fileinfo
--FILE--
<?php
$buffer = file_get_contents(__DIR__ . '/68731.gif');
$finfo = finfo_open(FILEINFO_MIME_TYPE);
echo finfo_buffer($finfo, $buffer);
?>
--EXPECT--
image/gif