summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDerick Rethans <derick@php.net>2005-10-18 13:02:11 +0000
committerDerick Rethans <derick@php.net>2005-10-18 13:02:11 +0000
commit9e6588d6f0944c75b82c978a7b687e59f127b8eb (patch)
tree2bbcfeaaff5151167a7d461d1a2fe1af0ba43678
parent37bc8289b99a69012d021b4a4e99ffd8f10bdada (diff)
downloadphp-git-9e6588d6f0944c75b82c978a7b687e59f127b8eb.tar.gz
- Allow mime_content_type() to work with even a slightly broken mime magic
file.
-rw-r--r--ext/mime_magic/mime_magic.c3
1 files changed, 0 insertions, 3 deletions
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);