php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #28936 mime_content_type always return "text/plain" for gif file
Submitted: 2004-06-28 06:25 UTC Modified: 2004-07-07 03:37 UTC
From: goseaside at sina dot com Assigned:
Status: Not a bug Package: Unknown/Other Function
PHP Version: 4.3.7 OS: windows
Private report: No CVE-ID: None
 [2004-06-28 06:25 UTC] 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

Patches

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-06-28 21:37 UTC] iliaa@php.net
The problem is likely the result of the mime file 
containing the codes for the various files & their mime 
types is not available. 
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Aug 17 09:01:28 2024 UTC