Bug #77784 [Com]: mime_content_type result gets doubled for xlsx
| From: | albsmul at gmail dot com | Date: | Tue, 07 Jan 2020 14:54:44 +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-224755@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: albsmul 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:
Same problem with php 7.4.1 and a Word docx file (libmagic 537) - mime_content_type returns
"application/vnd.openxmlformats-officedocument.wordprocessingml.documentapplication/vnd.openxmlformats-officedocument.wordprocessingml.document"
Worked well on old php 5.6.26 (libmagic 517)
Previous Comments:
------------------------------------------------------------------------
[2019-12-06 10:23:23] krihog at gmail dot com
Encountered this issue a couple of days ago when trying an upgrade to PHP 7.4.0
With xlsx-files downloaded from Google Sheets.
------------------------------------------------------------------------
[2019-10-22 14:35:13] cmb@php.net
Related To: Bug #78720
------------------------------------------------------------------------
[2019-05-17 14:05:49] cmb@php.net
Related To: Bug #78028
------------------------------------------------------------------------
[2019-04-23 08:51:34] hrvoje dot novosel at gmail dot com
Just to add another note, I've hit this issue today with php 7.3.4
I've also tried resaving the xlsx with LibreOffice 6.1.5.2 (x64) and after that I get
application/octet-stream as function return.
------------------------------------------------------------------------
[2019-04-17 15:42:23] cmb@php.net
I can reproduce this with the provided .xlsx, but not with
arbitrary LibreOffice .xlsx files. The behavioral change is most
likely caused by the upgrade to 5.34[1].
[1] <http://git.php.net/?p=php-src.git;a=commit;h=d874d4a15c2e17a753d580691906c95e9153b823>
------------------------------------------------------------------------
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