dis-bench / src /php /php-src /ext /fileinfo /tests /bug68731.phpt
meddyrat's picture
Replace repository contents with the original corrected artifact
1e94262
Raw History Blame Contribute Delete
286 Bytes
--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