ZF-9140: Zend_File_Transfer_Adapter_Abstract compares variable $file to null whilst it is never null and always an array
Description
In the Zend_File_Transfer_Adapter_Abstract class the function setOptions evaluates if the variable $file is equal to null (which it retrieves from the _getFiles function). However the value returned fron _getFiles is always an array, so this statement is always inherently false.
This hampered me severely in my attempts to upload a file with the magicFile set. I "fixed" it by checking if the sizeof the variable was larger than 0 or not...
Comments
Posted by Thomas Weidner (thomas) on 2010-02-12T12:58:52.000+0000
Closing as duplicate of ZF-9159