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

Issue Type: Bug Created: 2011-09-12T08:21:11.000+0000 Last Updated: 2011-09-15T07:58:31.000+0000 Status: Resolved Fix version(s): - Next Major Release ()

Reporter: Philipp Feigl (pfeigl) Assignee: Thomas Weidner (thomas) Tags: - Zend_Validate_File

Related issues: Attachments:


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


Posted by Thomas Weidner (thomas) on 2011-09-15T07:58:31.000+0000

Fixed in ZF2 with GH-424

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.