Re: fileinfo problems
| From: | Gareth Ardron | Date: | Wed, 26 May 2004 15:16:52 +0000 |
| Subject: | Re: fileinfo problems | ||
| References: | 1 2 3 4 | Groups: | php.pecl.dev |
| Request: | Send a blank email to pecl-dev+get-698@lists.php.net to get a copy of this message | ||
On Wed, May 26, 2004 at 10:43:31AM -0400, Ilia Alshanetsky wrote:
> If you've upgraded the library after installing fileinfo it is likely that the
> new magic file is not inside etc. If that is indeed the case you either need
> to recompile fileinfo (which will try to locate the best magic file during
> configure) or specify the path to the file as the 2nd parameter to finfo() or
> finfo_open().
Nope. Been through and done all that already.
It's debian, so by default stuff ends up in /usr/share/misc/files. I've tried copying
stuff out from this to /etc/magic and using the second argument
to point to the relevant magic.mime files in /usr/share/... but still nothing. Like I say,
permissions and all the obvious junk seems right and has
been double checked - it just doesn't like my copy of the magic file.
I should point out that I have exactly this same issue with mime_magic extension as well, where it
says that the magic file is invalid.
Cheers