From: Derick Rethans Date: Tue, 18 Oct 2005 15:04:07 +0000 (+0000) Subject: - MFH: Fixed bug #33829 (mime_content_type() returns text/plain for gzip and X-Git-Tag: php-5.1.0RC4~82 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3e46adb1831f8ff467b783e2a864588f9086e504;p=php - MFH: Fixed bug #33829 (mime_content_type() returns text/plain for gzip and bzip files). --- diff --git a/NEWS b/NEWS index cbc195b5fc..b2ef6b70e0 100644 --- a/NEWS +++ b/NEWS @@ -3,6 +3,7 @@ PHP NEWS ?? Oct 2005, PHP 5.1 Release Candidate 4 - Fixed bug #34902 (mysqli::character_set_name() - undefined method). (Tony) - Fixed bug #34899 (Fixed sqlite extension compile failure). ?(Ilia) +- Fixed bug #33829 (mime_content_type() returns text/plain for gzip and bzip files). (Derick) 17 Oct 2005, PHP 5.1 Release Candidate 3 - Fixed bug #34873 (Segmentation Fault on foreach in object). (Dmitry) diff --git a/ext/mime_magic/mime_magic.c b/ext/mime_magic/mime_magic.c index 54bc33e677..8c9b957ca2 100644 --- a/ext/mime_magic/mime_magic.c +++ b/ext/mime_magic/mime_magic.c @@ -434,9 +434,6 @@ static int apprentice(void) /* parse it */ if (parse(line + ws_offset, lineno) != 0) ++errs; - - if(errs && !MIME_MAGIC_G(debug)) - break; } (void) fclose(f);