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

Issue Type: Bug Created: 2012-10-23T06:50:58.000+0000 Last Updated: 2012-11-06T21:16:02.000+0000 Status: Resolved Fix version(s): - 1.12.1 (18/Dec/12)

Reporter: Yi Hu (huyi) Assignee: Frank Brückner (frosch) Tags: - Zend_File_Transfer

  • FixForZF1.12.1

Related issues: Attachments: - Http.php.patch


<pre class="highlight"> 
$adapter = new Zend_File_Transfer_Adapter_Http();
$adapter->setDestination(APPLICATION_PATH . '/data/tmp/');

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


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)

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.