]> granicus.if.org Git - php/commit
Fix #78183: finfo_file shows wrong mime-type for .tga file
authorJoshua Westerheide <dev@jdoubleu.de>
Fri, 28 Jun 2019 13:07:14 +0000 (15:07 +0200)
committerAnatol Belski <ab@php.net>
Sat, 29 Jun 2019 11:24:52 +0000 (13:24 +0200)
commit855bbc88c94bd9317379ab67e96a7bfce2f7c195
tree6cecec316596a70dd1b4049ca8b60c97304fca7f
parentf7327b62442304707f1c6466782c9f8530b61788
Fix #78183: finfo_file shows wrong mime-type for .tga file

Due to a bug in the underlying libmagic 5.31, .tga images returned mime type "image/x-tgaimage/x-tga".
ext/fileinfo/data_file.c
ext/fileinfo/magicdata.patch
ext/fileinfo/tests/finfo_file_002.phpt
ext/fileinfo/tests/magic
ext/fileinfo/tests/magic私はガラスを食べられます
ext/fileinfo/tests/resources/test.tga [new file with mode: 0644]