[pkg-horde] Bug#359833: kronolith2: php mime-magic warning in cron job output

Lionel Elie Mamane lionel at mamane.lu
Sun Jun 18 21:35:33 UTC 2006


severity 374352 normal
merge 374352 359833
block 359833 by 366911
thanks

On Sun, Jun 18, 2006 at 10:36:13PM +0200, nb wrote:

> I have the following mail every minute :

> PHP Warning:  mime_magic: type regex            BEGIN[[:space:]]*[{]
> +application/x-awk invalid in Unknown on line 0

I did some research; that's basically PHP not supporting the full mime
magic file format. That's bug #366911.

Note that http://nl2.php.net/manual/en/ref.mime-magic.php says:

 Note:  This extension is not capable of handling the fully decorated
 magic file that generally comes with standard Linux distro's and is
 supposed to be used with recent versions of file command.

>From bug #357522:

 another workaround is to make a copy of /usr/share/file/magic.mime, i 
 called mine /usr/share/file/magic.mime.php4 ... then comment out the awk 
 regex line...

 then edit /etc/php4/apache/php.ini and somewhere in the [PHP] section add:

 mime_magic.magicfile = "/usr/share/file/magic.mime.php4"

 ... it's a hack.

-- 
Lionel




More information about the pkg-horde-hackers mailing list