Bug #77784 [Ver->Csd]: mime_content_type result gets doubled for xlsx

From: Date: Fri, 24 May 2024 21:41:44 +0000
Subject: Bug #77784 [Ver->Csd]: mime_content_type result gets doubled for xlsx
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-246958@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
 Updated by:         nielsdos@php.net
 Reported by:        dpoddubny at gmail dot com
 Summary:            mime_content_type result gets doubled for xlsx
-Status:             Verified
+Status:             Closed
 Type:               Bug
 Package:            Filesystem function related
 Operating System:   linux
 PHP Version:        7.3.3
-Assigned To:        
+Assigned To:        nielsdos
 Block user comment: N
 Private report:     N

 New Comment:

I checked whether this bug still exists on the currently lowest-supported bugfix version, and it
appears this is fixed. It must've been fixed between PHP 7.3 and PHP 8.2. Closing this now.


Previous Comments:
------------------------------------------------------------------------
[2021-12-20 09:39:28] cmb@php.net

The following pull request has been associated:

Patch Name: Fix #77784: mime_content_type result gets doubled for xlsx.
On GitHub:  https://github.com/php/php-src/pull/7800
Patch:      https://github.com/php/php-src/pull/7800.patch

------------------------------------------------------------------------
[2021-12-20 09:39:06] cmb@php.net

This looks like an issue in libmagic?  Has it been reported
upstream[1], or has it been resolved there already?

[1] <https://bugs.astron.com/my_view_page.php>

------------------------------------------------------------------------
[2021-08-17 21:21:55] gilbertpaquin1995 at gmail dot com

I got the same issue with PHP 8.0.3 and PHP 8.0.6 on Windows and Linux

------------------------------------------------------------------------
[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 ?

------------------------------------------------------------------------


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


Thread (18 messages)

« previous php.bugs (#246958) next »