Re: fileinfo problems

From: Date: Wed, 26 May 2004 14:43:31 +0000
Subject: Re: fileinfo problems
References: 1 2 3  Groups: php.pecl.dev 
Request: Send a blank email to pecl-dev+get-697@lists.php.net to get a copy of this message
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(). Ilia On May 26, 2004 10:10 am, Gareth Ardron wrote: > On Wed, May 26, 2004 at 08:42:38AM -0400, Ilia Alshanetsky wrote: > > This is something fixed in the CVS version of fileinfo. > > Thanks Ilia, I should've really gone through the backdated stuff first. > > Next stupid question for today - I absolutly cannot get fileinfo reading > the magic file properly. Keep just getting this error instead: > Warning: finfo::finfo(): Failed to load magic database at '/etc/magic'. in > /usr/src/php-5.0.0RC2/ext/fileinfo/fileinfo.php on line 30 > > Now, I've tried magic files from 2 different linux distros, I've tried > grabbing source and recompiling libmagic, and yet I can't get it working. > > Any chance somebody can point me in the direction of a "correct" file that > it should be able to read - and possibly add a url they can download it > from to the docs or something ? > > Cheers, > > -- > Gareth

« previous php.pecl.dev (#697) next »