Issue Type: Bug Created: 2010-01-15T10:30:29.000+0000 Last Updated: 2010-01-16T07:38:13.000+0000 Status: Resolved Fix version(s): - 1.10.0 (27/Jan/10)
Reporter: Ota Mares (ota) Assignee: Thomas Weidner (thomas) Tags: - Zend_Validate_File
Related issues: Attachments: - Zend_Validate_File_IsImage.patch
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)
Posted by Thomas Weidner (thomas) on 2010-01-16T07:38:12.000+0000
Fixed with r20337
Patch is errorous and was not used
Have you found an issue?
See the Overview section for more details.