Bug #80594 [Opn->Csd]: MP3 file detected as application/x-font-gdos

From: Date: Fri, 24 May 2024 21:44:58 +0000
Subject: Bug #80594 [Opn->Csd]: MP3 file detected as application/x-font-gdos
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-246959@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=80594&edit=1 ID: 80594 Updated by: nielsdos@php.net Reported by: cmb@php.net Summary: MP3 file detected as application/x-font-gdos -Status: Open +Status: Closed Type: Bug Package: Filesystem function related Operating System: * PHP Version: 7.4.14RC1 -Assigned To: +Assigned To: nielsdos Block user comment: N Private report: N New Comment: This no longer reproduces in the currently lowest-supported bugfix version (PHP 8.2). This must've been fixed between PHP 7.4 and PHP 8.2. So I'm closing this now. Previous Comments: ------------------------------------------------------------------------ [2021-01-05 15:50:18] cmb@php.net Related To: Bug #79681 ------------------------------------------------------------------------ [2021-01-05 15:48:33] cmb@php.net Description: ------------ I'm forwarding this from another ticket[1]. A sample MP3 file[2] is erroneously detected as application/x-font-gdos instead of audio/mpeg with PHP-7.4, but not with PHP-7.3 nor PHP-8.0. [1] <https://bugs.php.net/79681#1605807139> [2] <https://drive.google.com/file/d/1QrF9iZBjmfgZGvOjrSVORfM6uI-nyidX/view?usp=sharing> Test script: --------------- <?php var_dump(mime_content_type('test_file.mp3')); Expected result: ---------------- string(10) "audio/mpeg" Actual result: -------------- string(23) "application/x-font-gdos" ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=80594&edit=1

« previous php.bugs (#246959) next »