ZF-8943: move of validation func to MimeType causes unreferenced array-texts

Issue Type: Bug Created: 2010-01-26T12:20:43.000+0000 Last Updated: 2010-01-26T12:38:39.000+0000 Status: Resolved Fix version(s): - 1.10.0 (27/Jan/10)

Reporter: Sol Han (sol) Assignee: Thomas Weidner (thomas) Tags: - Zend_Validate_File

Related issues: - ZF-8598



Forms no longer display "Is not an Image" warnings because IsImage validator was changed in 1.9.3. Validation function was moved from the IsImage class to the MimeType class where other constant-values are used for the message-array-reference.

Changing the consts to the following in the IsImage class solves the problem: const FALSE_TYPE = 'fileMimeTypeFalse'; const NOT_DETECTED = 'fileMimeTypeNotDetected'; const NOT_READABLE = 'fileMimeTypeNotReadable';

One alternative would be to change the const-context when called from subclass.


Posted by Thomas Weidner (thomas) on 2010-01-26T12:38:39.000+0000

Closing as duplicate

Have you found an issue?

See the Overview section for more details.


© 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.