ZF-5388: Zend_Amf_Server handles arguments wrong
The method _handle(Zend_Amf_Request $request) of Zend_Amf_Server handles the passed arguments wrong when the message is of type AMF3 and sent via NetConnection.
Current source code Zend/Amf/Server.php line 306: $return = $this->_dispatch($method, array($body->getData()), $source);
Since the bodies data is already an array containing all passed arguments wrapping them in another array is wrong and should be modified to: $return = $this->_dispatch($method, $body->getData(), $source);
Else the number of passed arguments is always one - even if multiple arguments have been sent from flash - sincethe first argument is an array containing all arguments. In the following line 309 it is done correctly when dealing with only a different kind of method signature.
One minor note: $body->getData() could be replaced by: $message in both line (306 and 309)