#28936 [Bgs]: mime_content_type always return text/plain for gif file

2004-07-06 Thread goseaside at sina dot com
 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=28936edit=1


#28936 [NEW]: mime_content_type always return text/plain for gif file

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