ZF-12367: Zend_Validate_File_MimeType tries to load incompatible magic.mime file

Issue Type: Bug Created: 2012-08-13T12:47:48.000+0000 Last Updated: 2012-08-14T07:36:08.000+0000 Status: Open Fix version(s): Reporter: Marcin Gil (mgil) Assignee: Thomas Weidner (thomas) Tags: - Zend_Validate_File

Related issues: - ZF-10461



The class tries to load incompatible magic.mime (since PHP 5.3.11 there is a new libmagic version), causing errors thrown by magic, for example: finfo_open() [<function.finfo-open>]: Warning: string extension `B' invalid and about thousand more similar to this one.

A simialr issue was mentioned in this ticket:, but it never got fixed. I suggest that solution from Jarek Nowisz should be included in ZF 1.11. I tested it and it works.

"Beginning with version 5.3.0, finfo is part of PHP and uses internal magic file, ZF should not try to load it."


No comments to display

Have you found an issue?

See the Overview section for more details.


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

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