|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-03-31 11:00 UTC] nashbridges12 at hotmail dot com
[2012-07-28 22:13 UTC] felipe@php.net
-Status: Open
+Status: Not a bug
-Package: Fileinfo
+Package: *General Issues
[2012-07-28 22:13 UTC] felipe@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 23:00:01 2025 UTC |
Description: ------------ Apache/2.2.4 (Win32) PHP/5.2.1 fileinfo support enabled exif_read_data function returns "FILE.MimeType: image/jpeg" on same files. Reproduce code: --------------- <?php $finfo = finfo_open(FILEINFO_MIME, 'C:/wamp/php/extras/magic'); foreach (glob("*") as $filename) { echo $filename . "<br />"; echo finfo_file($finfo, $filename) . "<br />"; } finfo_close($finfo); ?> Expected result: ---------------- image/jpeg image/jpeg image/jpeg image/jpeg Actual result: -------------- test1.JPG cannot open `test1.JPG' (No such file or directory) test2.JPG cannot open `test2.JPG' (No such file or directory) test3.jpg cannot open `test3.jpg' (No such file or directory) test4.jpg cannot open `test4.jpg' (No such file or directory)