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
Posted by Frank Brückner (frosch) on 2012-10-23T13:03:03.000+0000
Patch and unit test added.
Posted by Rob Allen (rob) on 2012-11-06T21:16:02.000+0000
Patch applied on trunk (25086) and release-1.12 (25087)