Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

This is what I'm doing:

$ php
<?php
$finfo=finfo_open(FILEINFO_MIME, '/usr/share/file/magic');

This is what I'm getting:

PHP Notice:  finfo_open(): Warning: description `8-bit ISDN mu-law compressed (CCITT G.721 ADPCM voice data enco' truncated in - on line 2
PHP Notice:  finfo_open(): Warning: description `8-bit ISDN mu-law compressed (CCITT G.721 ADPCM voice data enco' truncated in - on line 2
PHP Notice:  finfo_open(): Warning: <= not supported in - on line 2
PHP Notice:  finfo_open(): Warning: <= not supported in - on line 2
PHP Notice:  finfo_open(): Warning: <= not supported in - on line 2
PHP Notice:  finfo_open(): Warning: >= not supported in - on line 2
PHP Warning:  finfo_open(): Failed to load magic database at '/usr/share/file/magic'. in - on line 2

This is a clean CentOS 5.5 installation, PHP 5.3. The file /usr/share/file/magic exists and is accessible.

share|improve this question
    
To be clear: the file /usr/share/file/magic is found and parsed by PHP. There are only parse errors (or more precisely warnings). –  joschi Jun 5 '10 at 7:20
    
Exactly, but this warning is annoying in the log file... –  yegor256 Jun 5 '10 at 7:52

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.