mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
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:
parent
c9d0894ec5
commit
093a23d1c4
2
NEWS
2
NEWS
@ -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
|
||||
|
BIN
ext/fileinfo/tests/68731.gif
Normal file
BIN
ext/fileinfo/tests/68731.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.1 KiB |
14
ext/fileinfo/tests/bug68731.phpt
Normal file
14
ext/fileinfo/tests/bug68731.phpt
Normal 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
|
Loading…
Reference in New Issue
Block a user