Bug #77784 [Com]: mime_content_type result gets doubled for xlsx

From: Date: Tue, 09 Jun 2020 17:37:51 +0000
Subject: Bug #77784 [Com]: mime_content_type result gets doubled for xlsx
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-227383@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=77784&edit=1 ID: 77784 Comment by: juansmrad at gmail dot com Reported by: dpoddubny at gmail dot com Summary: mime_content_type result gets doubled for xlsx Status: Verified Type: Bug Package: Filesystem function related Operating System: linux PHP Version: 7.3.3 Block user comment: N Private report: N New Comment: I experience this issue with PHP 7.4.6 on Ubuntu 20 using docx format. I've tried opening and saving it from office365 but that did not solve it. Previous Comments: ------------------------------------------------------------------------ [2020-05-28 14:53:51] alexeyseliverstov dot dev at gmail dot com Similar to what ryanmcquerry reported, if you open and save your xslx file in Excel, it also solves the problem. That's a good enough workaround for the time being, while the bug is not fixed. ------------------------------------------------------------------------ [2020-05-18 00:10:04] ryanmcquerry at gmail dot com I am seeing this duplication with docx files downloaded from Google Docs. When I open them in Word and do a "Save As", it works again. ------------------------------------------------------------------------ [2020-05-14 09:13:11] michael at roth dot red I got the same issue with finfo(FILEINFO_MIME_TYPE, $file) in php 7.4.5 on linux ------------------------------------------------------------------------ [2020-05-13 20:24:41] oziranhua at instructure dot com This also is affecting word documents. Tested with: - MAC OS 10.15.4/ PHP 7.3.4 - Ubuntu 16.04.6 LTS / PHP 7.3.13 - Ubuntu 16.04.6 LTS / PHP 7.3.14 $ file --mime-type test.docx test.docx: application/vnd.openxmlformats-officedocument.wordprocessingml.document $ php -a Interactive shell php > print mime_content_type('./test.docx'); application/vnd.openxmlformats-officedocument.wordprocessingml.documentapplication/vnd.openxmlformats-officedocument.wordprocessingml.document ------------------------------------------------------------------------ [2020-04-28 23:33:52] requinix@php.net Related To: Bug #79534 ------------------------------------------------------------------------ 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=77784 -- Edit this bug report at https://bugs.php.net/bug.php?id=77784&edit=1

« previous php.bugs (#227383) next »