Bug #79681 [ReO->Csd]: mime_content_type/finfo returning incorrect mimetype

From: Date: Tue, 05 Jan 2021 15:50:18 +0000
Subject: Bug #79681 [ReO->Csd]: mime_content_type/finfo returning incorrect mimetype
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-231379@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=79681&edit=1 ID: 79681 Updated by: cmb@php.net Reported by: xandros92 at gmail dot com Summary: mime_content_type/finfo returning incorrect mimetype -Status: Re-Opened +Status: Closed Type: Bug Package: *Directory/Filesystem functions Operating System: Windows 10 1909 PHP Version: 7.4.6 Assigned To: cmb Block user comment: N Private report: N New Comment: It makes no sense to keep this ticket open, since the changelog already has entries that this issue has been fixed, and quite obviously, this is yet a different issue. Therefore I have reported this as bug #80594. Previous Comments: ------------------------------------------------------------------------ [2020-11-25 13:50:46] cmb@php.net Thanks for the sample file! I can confirm the reported behavior, although the sample provided by xandros92 yields the desired results for PHP 7.3 and 7.4. This might be a different issue. Re-opening for now, to keep track of the issue. ------------------------------------------------------------------------ [2020-11-24 17:12:32] jamier105+php at gmail dot com https://drive.google.com/file/d/1QrF9iZBjmfgZGvOjrSVORfM6uI-nyidX/view?usp=sharing ------------------------------------------------------------------------ [2020-11-19 17:42:38] cmb@php.net Please provide the example file! :) ------------------------------------------------------------------------ [2020-11-19 17:32:19] jamier105+php at gmail dot com Please can this bug be reopened and checked again as I can recreate it using PHP 7.4.12: $ php7.3 -v PHP 7.3.24-3+ubuntu18.04.1+deb.sury.org+1 (cli) (built: Oct 31 2020 16:59:59) ( NTS ) Copyright (c) 1997-2018 The PHP Group $ php7.3 -r 'echo finfo_file(finfo_open(), __DIR__ . "/my_file.mp3", FILEINFO_MIME). "\n";' audio/mpeg; charset=binary $ php7.4 -v PHP 7.4.12 (cli) (built: Oct 31 2020 17:04:09) ( NTS ) Copyright (c) The PHP Group $ php7.4 -r 'echo finfo_file(finfo_open(), __DIR__ . "/my_file.mp3", FILEINFO_MIME). "\n";' application/x-font-gdos; charset=binary An example file can be provided if needed. Thanks. ------------------------------------------------------------------------ [2020-06-10 14:41:41] cmb@php.net Automatic comment on behalf of cmbecker69@gmx.de Revision: http://git.php.net/?p=php-src.git;a=commit;h=6747068ce716ca9e458b245489086d7ff13109b9 Log: Fix #79681: mime_content_type/finfo returning incorrect mimetype ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=79681 -- Edit this bug report at https://bugs.php.net/bug.php?id=79681&edit=1

« previous php.bugs (#231379) next »