ID: 28936
Updated by: [EMAIL PROTECTED]
Reported By: goseaside at sina dot com
-Status: Open
+Status: Bogus
Bug Type: Unknown/Other Function
Operating System: windows
PHP Version: 4.3.7
New Comment:
The problem is likely the result of the mime file
containing the codes for the various files & their mime
types is not available.
Previous Comments:
------------------------------------------------------------------------
[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