Zend exception:
finfo_open() [function.finfo-open]: Warning: description `8-bit ISDN mu-law compressed (CCITT G.721 ADPCM voice data enco' truncated
/mnt/www/zend/Zend/Validate/File/MimeType.php on line 199
#0 [internal function]: exceptionErrorHandler(8, 'finfo_open() [<...', '/mnt/www/zend/Z...', 199, Array)
I thought it was Zend bug, but bug it native fileinfo extension...
test php script:
php
$finfo = finfo_open(FILEINFO_MIME, "/usr/share/file/magic"); // return mime type ala mimetype extension
if (!$finfo) {
echo "Opening fileinfo database failed";
exit();
}
?>
SOLUTION:
Just install fileinfo from pecl:
# cd /tmp# wget http://pecl.php.net/get/Fileinfo-1.0.4.tgz# tar -xzvf Fileinfo-1.0.4.tgz# phpize && ./configure && make# sudo make install
-- vladget