From 3e46adb1831f8ff467b783e2a864588f9086e504 Mon Sep 17 00:00:00 2001 From: Derick Rethans Date: Tue, 18 Oct 2005 15:04:07 +0000 Subject: [PATCH] - MFH: Fixed bug #33829 (mime_content_type() returns text/plain for gzip and bzip files). --- NEWS | 1 + ext/mime_magic/mime_magic.c | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-) 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); -- 2.50.1