ZF-12451: Passing array() to Zend_File_Transfer_Adapter_Http::receive() will bring a warning thrown by array_key_exists()

Description

 
$adapter = new Zend_File_Transfer_Adapter_Http();
$adapter->setDestination(APPLICATION_PATH . '/data/tmp/');
$adapter->receive(array());

Warning: array_key_exists(): The first argument should be either a string or an integer in /usr/share/php/libzend-framework-php/Zend/Validate/File/Upload.php on line 165

Comments

Patch and unit test added.

Patch applied on trunk (25086) and release-1.12 (25087)