ID:               28936
 User updated by:  goseaside at sina dot com
 Reported By:      goseaside at sina dot com
 Status:           Bogus
 Bug Type:         Unknown/Other Function
 Operating System: windows
 PHP Version:      4.3.7
 New Comment:

In addition, the mime.magic file I am using contains right mime type
for GIF file.


Previous Comments:
------------------------------------------------------------------------

[2004-06-28 21:37:43] [EMAIL PROTECTED]

The problem is likely the result of the mime file 
containing the codes for the various files & their mime 
types is not available. 

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

[2004-06-28 06:25:52] goseaside at sina dot com

Description:
------------
When I use function mime_content_type to detect file types,
under windows, for a gif file, it always return "text/plain" for it,
even if mime_magic.debug is set to "on",

php under linux not tested.

Please fix it.

Thank u.

Reproduce code:
---------------
<?
echo mime_content_type('1.gif');
?> 

Expected result:
----------------
image/gif

Actual result:
--------------
text/plain


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


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

Reply via email to