Bug #67516 [Opn]: wrong mimetypes with finfo_file(filename, FILEINFO_MIME_TYPE)

From: Date: Mon, 13 Jul 2015 11:17:41 +0000
Subject: Bug #67516 [Opn]: wrong mimetypes with finfo_file(filename, FILEINFO_MIME_TYPE)
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-194392@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=67516&edit=1 ID: 67516 Updated by: cmb@php.net Reported by: spam2 at rhsoft dot net Summary: wrong mimetypes with finfo_file(filename, FILEINFO_MIME_TYPE) Status: Open Type: Bug -Package: Scripting Engine problem +Package: Filesystem function related Operating System: Linux PHP Version: 5.5.13 Block user comment: N Private report: N New Comment: Thanks for making the file available, and sorry for the bad pointer to picpaste.com. Anyhow, a quick check: cmb@debian64:~$ file -b --mime-type 67516.gif application/octet-stream cmb@debian64:~$ dpkg -s file Package: file Status: install ok installed Priority: standard Section: utils Installed-Size: 119 Maintainer: Christoph Biedl <debian.axhn@manchmal.in-ulm.de> Architecture: amd64 Multi-Arch: foreign Version: 1:5.22+15-2 Depends: libc6 (>= 2.4), libmagic1 (= 1:5.22+15-2), zlib1g (>= 1:1.1.4) Description: Determines file type using "magic" numbers File tests each argument in an attempt to classify it. There are three sets of tests, performed in this order: filesystem tests, magic number tests, and language tests. The first test that succeeds causes the file type to be printed. Homepage: http://www.darwinsys.com/file/ Which version of file/libmagic do you use? Previous Comments: ------------------------------------------------------------------------ [2015-07-13 10:10:04] spam2 at rhsoft dot net https://access.thelounge.net/harry/php-mimetype-bug.gif the PHP version don't matter, it happens with 5.5 for over a year as well as with recent 5.6.11 builds for that file and i don't get "Usage of external libmagic isn't possible for various reasons" while all other software out there can use system libraries > you can upload the image file to http://picpaste.com/ seriously? a GIF coverted to jpeg and "The picture shown above was automatically resized!" wil hadrly help to debug a issue with the original..... ------------------------------------------------------------------------ [2015-07-13 09:54:40] cmb@php.net As @ab has already said, you can upload the image file to http://picpaste.com/, and of course there are lots of other similar hosting services. Alternatively, you can make the file available for download on (one of) your own server(s). Please change the status of the bug report to "Open", when you're replying. Otherwise the status will be automatically changed to "No Feedback" after two weeks. ------------------------------------------------------------------------ [2015-01-25 08:52:25] spam2 at rhsoft dot net no feedback was provided? i said "sadly i don't see here any option to attach the image" in the original report and a *really* interested developer would have offered to send the file per mail to him - what feedback do you expect on a bugtracker from the early 1990's with no capabilities? ------------------------------------------------------------------------ [2015-01-25 04:22:21] php-bugs at lists dot php dot net No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to "Re-Opened". Thank you. ------------------------------------------------------------------------ [2015-01-11 17:40:36] ab@php.net Usage of external libmagic isn't possible for various reasons, the patched version is tightly integrated with PHP. @spam2, @fayez, which file/PHP versions was used? @spam2, please post the image you've an issue with to http://picpaste.com/ . You could probably check with bug #68731 whether it's reproducible for you. Thanks. ------------------------------------------------------------------------ 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=67516 -- Edit this bug report at https://bugs.php.net/bug.php?id=67516&edit=1

« previous php.bugs (#194392) next »