Zend Framework

move of validation func to MimeType causes unreferenced array-texts

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major 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

Activity

Hide
Thomas Weidner added a comment -

Closing as duplicate

Show
Thomas Weidner added a comment - Closing as duplicate

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: