Issues

ZF-8833: It is not possible to use the set options like headerCheck or magicfile with the Zend_Validate_File_IsImage validator.

Description

It is not possible to use the set options like headerCheck or magicfile with the Zend_Validate_File_IsImage validator. Zend_Validate_File_IsImage does not pass the contructor parameters to Zend_Validate_File_MimeType::__construct method but calls setMimeType. So code for setting these options gets skipped. I guess this also applys to Zend_Validate_File_IsCompressed (not confirmed).

Calling the parent constructor instead of the setmimetype method fixes the issue, see provided patch. (Not tested via unit tests)

Comments

Fixed with r20337

Patch is errorous and was not used