Browse Source

Make that error message more meaningful for systems like my SuSE 7.0 with

an apparently broken magic file.
migration/unlabaled-1.1.2
Wez Furlong 24 years ago
parent
commit
c429805e0b
  1. 2
      ext/mime_magic/mime_magic.c

2
ext/mime_magic/mime_magic.c

@ -465,7 +465,7 @@ static int parse(char *l, int lineno)
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;

Loading…
Cancel
Save