Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Duplicate
-
Affects Version/s: 1.9.3, 1.9.4, 1.9.5, 1.9.6, 1.9.7
-
Fix Version/s: 1.10.0
-
Component/s: Zend_Validate_File
-
Labels:None
Description
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.
Issue Links
| This issue duplicates: | ||||
| ZF-8679 | Zend_Validate_File_IsImage: late static binding issue with Zend_Validate_File_MimeType::isValid() |
|
|
|
| ZF-8680 | Zend_Validate_File_IsCompressed: late static binding issue with Zend_Validate_File_MimeType::isValid() |
|
|
|
| ZF-8598 | Zend_Validate_File_IsImage class constant inheritance issue |
|
|
|
Closing as duplicate