cvs: php4 /ext/mime_magic mime_magic.c
| From: | Wez Furlong | Date: | Fri, 04 Oct 2002 19:01:34 +0000 |
| Subject: | cvs: php4 /ext/mime_magic mime_magic.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-14545@lists.php.net to get a copy of this message | ||
wez Fri Oct 4 15:01:34 2002 EDT
Modified files:
/php4/ext/mime_magic mime_magic.c
Log:
Make that error message more meaningful for systems like my SuSE 7.0 with
an apparently broken magic file.
Index: php4/ext/mime_magic/mime_magic.c
diff -u php4/ext/mime_magic/mime_magic.c:1.12 php4/ext/mime_magic/mime_magic.c:1.13
--- php4/ext/mime_magic/mime_magic.c:1.12 Tue Sep 24 02:39:43 2002
+++ php4/ext/mime_magic/mime_magic.c Fri Oct 4 15:01:34 2002
@@ -15,7 +15,7 @@
| Author: Hartmut Holzgraefe <hartmut@six.de> |
+----------------------------------------------------------------------+
- $Id: mime_magic.c,v 1.12 2002/09/24 06:39:43 sas Exp $
+ $Id: mime_magic.c,v 1.13 2002/10/04 19:01:34 wez Exp $
This module contains a lot of stuff taken from Apache mod_mime_magic,
so the license section is a little bit longer than usual:
@@ -465,7 +465,7 @@
m->offset = (int) strtol(l, &t, 0);
if (l == t) {
php_error(E_WARNING,
- MODNAME ": offset %s invalid", l);
+ MODNAME ": (line %d) offset `%s' invalid", lineno, l);
}
l = t;