Fix #78183: finfo_file shows wrong mime-type for .tga file#4326
Fix #78183: finfo_file shows wrong mime-type for .tga file#4326jdoubleu wants to merge 1 commit intophp:PHP-7.2from
Conversation
|
@jdoubleu looks good, thanks for the PR! Usually Thanks. |
Due to a bug in the underlying libmagic 5.31, .tga images returned mime type "image/x-tgaimage/x-tga".
|
Yes, I totally agree. For the sake of completeness, I updated the When merging into PHP7.3 or later the |
|
Merged as 855bbc8. The test magic update was not really necessary, but thanks in any case! |
https://bugs.php.net/bug.php?id=78183
I built the
magic.mgcfile based on https://github.com/file/file/tree/FILE5_31 and applied all changes frommagicdata.patchincluding file/file@bb421c4#diff-5c8aa65000f916c2f4b5c29c808ea851.cc @weltling