Edit report at https://bugs.php.net/bug.php?id=77784&edit=1
ID: 77784
Comment by: gilbertpaquin1995 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 got the same issue with PHP 8.0.3 and PHP 8.0.6 on Windows and Linux
Previous Comments:
------------------------------------------------------------------------
[2021-06-21 17:48:58] charles at fullsteamlabs dot com
Encountered this using PHP 7.4.19 both inside a docker container and 7.3 (don't have more
specific info) on the Pantheon hosting platform.
Confirmed that the mime type returned by
$finfo = finfo_open( FILEINFO_MIME_TYPE );
$real_mime = finfo_file( $finfo, $file );
is
application/vnd.openxmlformats-officedocument.wordprocessingml.documentapplication/vnd.openxmlformats-officedocument.wordprocessingml.document
for a docx file that was exported from Google Drive.
This problem did not occur with a docx file created in LibreOffice.
------------------------------------------------------------------------
[2021-05-11 09:00:26] yannick dot mauray at arcantel dot ch
We encountered this problem on php 7.3.11, on FreeBSD 12.0, with some XLSX and DOCX files.
Is there an update or a workaround ? Or a scheduled patch maybe ?
------------------------------------------------------------------------
[2020-06-09 17:37:51] juansmrad at gmail dot com
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.
------------------------------------------------------------------------
[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.
------------------------------------------------------------------------
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