[dev] Problem with filenfo & MIME/Magic.php

Jan Schneider jan at horde.org
Mon Jun 7 01:23:07 PDT 2004


Zitat von Ben Chavet <ben at chavet.net>:

> When I try to upload an image with ansel, I get the following errors:
>
> -----
> Warning: finfo_open(): Failed to load magic database at ''. in
> /var/www/pear/Horde/MIME/Magic.php on line 179
>
> Warning: finfo_file(): supplied argument is not a valid file_info resource in
> /var/www/pear/Horde/MIME/Magic.php on line 180
>
> Warning: finfo_close(): supplied argument is not a valid file_info 
> resource in
> /var/www/pear/Horde/MIME/Magic.php on line 181
> -----
>
> This only happens when I use fileinfo.  If I disable that extension, 
> everything
> works fine.  I have the latest CVS, latest pear packages, PHP 4.3.6, Apache
> 2.0.49.  I do not know when this broke, it's been about 2 weeks since I've
> worked with my horde installation.

A wild guess: does the fileinfo extension need a php.ini setting to specify
a mime.magic file?

Jan.

--
Do you need professional PHP or Horde consulting?
http://horde.org/consulting.php


More information about the dev mailing list