Issues

ZF-8432: MimeType recognition broken in ZF 1.9.6

Description

When I upload a file and test it against a Zend_Validate_File_MimeType validator, in ZF 1.9.6 I get

Notice: finfo::finfo(): Warning: description `8-bit ISDN mu-law compressed (CCITT G.721 ADPCM voice data enco' truncated in /var/www/ZendFramework-1.9.4-minimal/library/Zend/Validate/File/MimeType.php on line 298

Notice: finfo::finfo(): Warning: description `8-bit ISDN mu-law compressed (CCITT G.721 ADPCM voice data enco' truncated in /var/www/ZendFramework-1.9.4-minimal/library/Zend/Validate/File/MimeType.php on line 298

Notice: finfo::finfo(): Warning: <= not supported in /var/www/ZendFramework-1.9.6-minimal/library/Zend/Validate/File/MimeType.php on line 298

Notice: finfo::finfo(): Warning: <= not supported in /var/www/ZendFramework-1.9.4-minimal/library/Zend/Validate/File/MimeType.php on line 298

Notice: finfo::finfo(): Warning: <= not supported in /var/www/ZendFramework-1.9.6-minimal/library/Zend/Validate/File/MimeType.php on line 298

Notice: finfo::finfo(): Warning: >= not supported in /var/www/ZendFramework-1.9.4-minimal/library/Zend/Validate/File/MimeType.php on line 298

Warning: finfo::finfo(): Failed to load magic database at '/usr/share/file/magic'. in /var/www/ZendFramework-1.9.4-minimal/library/Zend/Validate/File/MimeType.php on line 298

Warning: finfo::file(): The invalid fileinfo object. in /var/www/ZendFramework-1.9.4-minimal/library/Zend/Validate/File/MimeType.php on line 304

Copying the ZF 1.9.3PL1 file Zend/Validate/File/MimeType.php into the 1.9.6 tree allows uploads to validate correctly.

Comments

1.9.6 version affected also

Closing as incomplete.

The created issue is already marked as fixed for the next minor release by the reporter. Nothing to do in my understanding.