]> granicus.if.org Git - php/commitdiff
- Allow mime_content_type() to work with even a slightly broken mime magic
authorDerick Rethans <derick@php.net>
Tue, 18 Oct 2005 13:02:11 +0000 (13:02 +0000)
committerDerick Rethans <derick@php.net>
Tue, 18 Oct 2005 13:02:11 +0000 (13:02 +0000)
  file.

ext/mime_magic/mime_magic.c

index 0ec285b50482e6c745560640642262e898c58adc..c627d64730c433447d2e6dfe6bf274923ff4a8e5 100644 (file)
@@ -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);