|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-05-25 11:14 UTC] sniper@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Dec 20 14:00:02 2025 UTC |
Description: ------------ This a repost for bugs #26918 and #28936 which were both marked as "Bogus" (which they are not.) Here is the relevant part of my php.ini mime_magic.magicfile = "C:\php5\extras\magic.mime" mime_magic.debug = On extension=php_mime_magic.dll Here is the beginning of c:\windows\web\bullet.gif: GIF89a From c:\php5\extra\magic.mime: line 392: 0 string GIF8 image/gif Reproduce code: --------------- <? print("File type is ".mime_content_type("c:\windows\web\bullet.gif")."\n"); ?> Expected result: ---------------- File type is image/gif Actual result: -------------- With "mime_magic.debug = Off" in php.ini: C:\php5>php mime_test.php File type is text/plain With "mime_magic.debug = On" in php.ini: C:\php5>php mime_test.php File type is image/gif