From: Derick Rethans Date: Tue, 18 Oct 2005 13:02:11 +0000 (+0000) Subject: - Allow mime_content_type() to work with even a slightly broken mime magic X-Git-Tag: RELEASE_0_9_1~87 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9e6588d6f0944c75b82c978a7b687e59f127b8eb;p=php - Allow mime_content_type() to work with even a slightly broken mime magic file. --- diff --git a/ext/mime_magic/mime_magic.c b/ext/mime_magic/mime_magic.c index 0ec285b504..c627d64730 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);