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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: goseaside at sina dot com
New email:
PHP Version: OS:

 

 [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

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: Wed Sep 11 17:02:22 2024 UTC