--- php-5.2.6/ext/mime_magic/config.m4 2007-07-03 19:25:34.000000000 +0200 +++ php-5.2.6.new/ext/mime_magic/config.m4 2008-06-16 09:32:48.996084697 +0200 @@ -18,8 +18,6 @@ if test "$PHP_MIME_MAGIC" != "yes"; then if test -f $PHP_MIME_MAGIC; then PHP_MIME_MAGIC_FILE_PATH=$PHP_MIME_MAGIC - else - AC_MSG_ERROR([File '$PHP_MIME_MAGIC' not found!]) fi else MAGIC_MIME_LOCATIONS="/usr/local/apache/conf/magic /usr/local/etc/apache/conf/magic /etc/apache/magic /etc/httpd/conf/magic /usr/share/magic.mime /usr/share/misc/magic.mime /etc/magic.mime" --- php-4.4.9/ext/mime_magic/mime_magic.c~ 2007-12-31 08:22:49.000000000 +0100 +++ php-4.4.9/ext/mime_magic/mime_magic.c 2013-02-20 09:07:01.388809868 +0100 @@ -478,8 +478,8 @@ /* get offset, then skip over it */ m->offset = (int) strtol(l, &t, 0); if (l == t) { - php_error(E_WARNING, - MODNAME ": (line %d) offset `%s' invalid", lineno, l); + //php_error(E_WARNING, + // MODNAME ": (line %d) offset `%s' invalid", lineno, l); } l = t; @@ -501,8 +501,8 @@ m->in.type = BYTE; break; default: - php_error(E_WARNING, - MODNAME ": indirect offset type %c invalid", *l); + //php_error(E_WARNING, + // MODNAME ": indirect offset type %c invalid", *l); break; } l++; @@ -518,8 +518,8 @@ else t = l; if (*t++ != ')') { - php_error(E_WARNING, - MODNAME ": missing ')' in indirect offset"); + //php_error(E_WARNING, + // MODNAME ": missing ')' in indirect offset"); } l = t; } @@ -592,8 +592,8 @@ l += NLEDATE; } else { - php_error(E_WARNING, - MODNAME ": type %s invalid", l); + //php_error(E_WARNING, + // MODNAME ": type %s invalid", l); return -1; } /* New-style anding: "0 byte&0x80 =0x80 dynamically linked" */