Issues

ZF-8432: MimeType recognition broken in ZF 1.9.6

Issue Type: Bug Created: 2009-12-01T07:08:12.000+0000 Last Updated: 2009-12-02T06:37:59.000+0000 Status: Resolved Fix version(s): - 1.10.0 (27/Jan/10)

Reporter: Ivan Shumkov (shumkov) Assignee: Thomas Weidner (thomas) Tags: - Zend_Validate_File

Related issues: Attachments:

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

Posted by Ivan Shumkov (shumkov) on 2009-12-01T07:09:14.000+0000

1.9.6 version affected also

Posted by Thomas Weidner (thomas) on 2009-12-02T06:37:59.000+0000

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.

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts