Fixed bug #68731 finfo_buffer doesn't extract the correct mime with some gifs

The fix for bug #67647 applies here, too.
This commit is contained in:
Anatol Belski 2015-01-22 12:26:50 +01:00
parent c9d0894ec5
commit 093a23d1c4
3 changed files with 16 additions and 0 deletions

2
NEWS
View File

@ -13,6 +13,8 @@
. Fixed bug #68827 (Double free with disabled ZMM). (Joshua Rogers)
. Fixed bug #67647 (Bundled libmagic 5.17 does not detect quicktime files
correctly). (Anatol)
. Fixed bug #68731 (finfo_buffer doesn't extract the correct mime with some
gifs). (Anatol)
- Opcache:
. Fixed bug with try blocks being removed when extended_info opcode

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

@ -0,0 +1,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(dirname(__FILE__) . '/68731.gif');
$finfo = finfo_open(FILEINFO_MIME_TYPE);
echo finfo_buffer($finfo, $buffer);
?>
--EXPECT--
image/gif