ZF-9140: Zend_File_Transfer_Adapter_Abstract compares variable $file to null whilst it is never null and always an array

Issue Type: Bug Created: 2010-02-11T02:45:11.000+0000 Last Updated: 2010-02-12T12:59:18.000+0000 Status: Resolved Fix version(s): - 1.10.2 (24/Feb/10)

Reporter: Paul Kievits (paulk) Assignee: Thomas Weidner (thomas) Tags: - Zend_File_Transfer

Related issues: - ZF-9159



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...


Posted by Thomas Weidner (thomas) on 2010-02-12T12:58:52.000+0000

Closing as duplicate of ZF-9159

Have you found an issue?

See the Overview section for more details.


© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.