|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull Requests
Pull requests:
HistoryAllCommentsChangesGit/SVN commits
[2019-06-19 16:29 UTC] dev at jdoubleu dot de
[2019-06-21 06:25 UTC] krakjoe@php.net
-Status: Open
+Status: Feedback
[2019-06-21 06:25 UTC] krakjoe@php.net
[2019-06-21 06:28 UTC] krakjoe@php.net
[2019-06-21 13:10 UTC] dev at jdoubleu dot de
[2019-06-22 20:38 UTC] dev at jdoubleu dot de
[2019-06-27 14:35 UTC] dev at jdoubleu dot de
[2019-06-28 13:17 UTC] dev at jdoubleu dot de
[2019-06-29 11:32 UTC] ab@php.net
[2019-06-29 11:32 UTC] ab@php.net
-Status: Feedback
+Status: Closed
[2019-06-29 11:32 UTC] ab@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 07:00:01 2025 UTC |
Description: ------------ The finfo_file() method does not return the correct mime-type for .tga files. Test script: --------------- ini_set('user_agent', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36'); $src = fopen('http://people.math.sc.edu/Burkardt/data/tga/earth.tga', 'r'); $dest = fopen('image.tga', 'w'); stream_copy_to_stream($src, $dest); print(finfo_file(finfo_open(FILEINFO_MIME_TYPE), 'image.tga')); // => image/x-tgaimage/x-tga Expected result: ---------------- "image/x-tga" Actual result: -------------- "image/x-tgaimage/x-tga"