#28936 [Opn->Bgs]: mime_content_type always return "text/plain" for gif file

From: Date: Mon, 28 Jun 2004 19:37:44 +0000
Subject: #28936 [Opn->Bgs]: mime_content_type always return "text/plain" for gif file
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-61445@lists.php.net to get a copy of this message
ID: 28936 Updated by: iliaa@php.net 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

« previous php.bugs (#61445) next »