[hotfix/ZF-10461] Zend_Validator_File#365
Conversation
thomasweidner
commented
Aug 29, 2011
- fixed setting "false" as mimefile
- fixed Excludemimetype validator to be used in ZF2
- fixed setting "false" as mimefile - fixed Excludemimetype validator to be used in ZF2
|
tests/Zend/Validator/File/ExcludeMimeTypeTest.php fails on the first data set of testBasic(): This is true for all but the very last data set (array(array('image/jpeg', 'jpeg'), true)). In debugging this, it appears that finfo is giving back a MIME type of "application/octet-stream" for the file we're testing against (testsize.mo). This is occurring on an Ubuntu 11.04 install running PHP 5.3.5. I've decided to merge anyways, but we may need to do some work on the testbed to ensure these tests will pass for all platforms. |
|
Please backport it to ZF 1.11. Actually the solution here does not seem to be right, it should be as Jarek Nowisz suggested: The fix should not require setting the file to "false". |