Bug #79534 [Opn]: Duplicate Mimetype
| From: | grussellmd at gmail dot com | Date: | Tue, 28 Apr 2020 21:37:32 +0000 |
| Subject: | Bug #79534 [Opn]: Duplicate Mimetype | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-226814@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=79534&edit=1
ID: 79534
User updated by: grussellmd at gmail dot com
Reported by: grussellmd at gmail dot com
Summary: Duplicate Mimetype
Status: Open
Type: Bug
Package: *General Issues
Operating System: Linux Debian
PHP Version: 7.4.5
Block user comment: N
Private report: N
New Comment:
File was created using LibreOffice in Ubuntu and saved as xlsx Excel Spreadsheet
Previous Comments:
------------------------------------------------------------------------
[2020-04-28 21:23:47] grussellmd at gmail dot com
Description:
------------
At least for one mime type I get the wrong format, it's duplicated
Test script:
---------------
$finfo = new \finfo(FILEINFO_MIME_TYPE, null);
echo $finfo->file('/var/www/html/t2.xlsx');
Expected result:
----------------
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
Actual result:
--------------
application/vnd.openxmlformats-officedocument.spreadsheetml.sheetapplication/vnd.openxmlformats-officedocument.spreadsheetml.sheet
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=79534&edit=1