ZF-11734: Zend_Validate_File_MimeType should use getenv instead of $_ENV


Alot PHP installations go with an variable_order of "GPC". "E" is often no longer part of it. Also suhosin patches clear up the $_ENV environmental variable by a good amount. In those cases, $_ENV['MAGIC'] will not be available, even while getenv('MAGIC') would return the correct value.

Therefor I would advise to use getenv instead of $_ENV within the getMagicFile method of the Zend_Validate_File_MimeType class


Fixed in ZF2 with GH-424