ZF-12380: Error on Zend_Amf_Request AMF3 with no parameters

Issue Type: Bug Created: 2012-08-21T09:41:26.000+0000 Last Updated: 2012-09-05T10:31:39.000+0000 Status: Open Fix version(s): Reporter: cast ( Assignee: Wade Arnold (wadearnold) Tags: - Zend_Amf

Related issues: Attachments:


In a test context with a forged AMF3 request, the error "Undefined offset: 0" occurred. In the request, it was no parameter, only a response is expected, eg the current date. The error occured in Zend_Amf_Request->readBody line 186.

The solution is to add the test :

<pre class="highlight">

The patch to apply is  :

if(is_array($data) && isset ($data [0]) && $data[0] instanceof Zend_Amf_Value_Messaging_AbstractMessage){ ```


No comments to display

Have you found an issue?

See the Overview section for more details.


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

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