From:             goseaside at sina dot com
Operating system: windows
PHP version:      4.3.7
PHP Bug Type:     Unknown/Other Function
Bug description:  mime_content_type always return "text/plain" for gif file

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 bug report at http://bugs.php.net/?id=28936&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=28936&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=28936&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=28936&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=28936&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=28936&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=28936&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=28936&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=28936&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=28936&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=28936&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=28936&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=28936&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28936&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=28936&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=28936&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=28936&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=28936&r=float

Reply via email to