Bug #68916 [Opn]: Mime Type for some jpeg files not detected correctly

From: Date: Mon, 26 Jan 2015 14:07:10 +0000
Subject: Bug #68916 [Opn]: Mime Type for some jpeg files not detected correctly
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-190231@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=68916&edit=1

 ID:                 68916
 User updated by:    uwej711 at gmail dot com
 Reported by:        uwej711 at gmail dot com
-Summary:            Mime Types for jpeg files not detected correctly
+Summary:            Mime Type for some jpeg files not detected correctly
 Status:             Open
 Type:               Bug
 Package:            Filesystem function related
 Operating System:   Ubuntu 14.04
-PHP Version:        5.5.21
+PHP Version:        5.5.9
 Block user comment: N
 Private report:     N

 New Comment:

Sorry this is the correct patch link:

https://github.com/file/file/commit/7e21b5477712cedf70403624d705c6cd7656a780

This bug also affects the latest 5.6.5 version


Previous Comments:
------------------------------------------------------------------------
[2015-01-26 14:04:20] uwej711 at gmail dot com

Description:
------------
There are some jpegs that are detected as Linux/i386 core file. This is only fixed in libmagic 5.18,
currently php uses 5.17. See https://github.com/file/file/commit/7e21b5477712cedf70403624d705c6cd7656a780for
the change in libmagic. 

There is currently no way to work around this as the magic file is compiled into php



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



--
Edit this bug report at https://bugs.php.net/bug.php?id=68916&edit=1


Thread (6 messages)

« previous php.bugs (#190231) next »