Issues

ZF-12404: Zend_Amf_Util_BinaryStream - Undefined variable on an exception message

Issue Type: Bug Created: 2012-09-05T10:27:09.000+0000 Last Updated: 2013-01-22T11:08:39.000+0000 Status: Resolved Fix version(s): - 1.12.2 (25/Feb/13)

Reporter: cast (ccastello@athmo.eu) Assignee: Frank Brückner (frosch) Tags: - Zend_Amf

Related issues: Attachments:

Description

Class : Zend_Amf_Util_BinaryStream Method = readByte() (line 128 ) the variable $length is undefined.

<pre class="highlight">
throw new Zend_Amf_Exception('Buffer underrun at needle position: ' . $this->_needle . ' while requesting length: ' . $length);

Patch to apply

<pre class="highlight">
throw new Zend_Amf_Exception('Buffer underrun at needle position: ' . $this->_needle . ' while requesting length: ' . $this->_streamLength);

Comments

Posted by Frank Brückner (frosch) on 2013-01-22T11:07:46.000+0000

Fixed on trunk (25240) and release-1.12 (25241)

Have you found an issue?

See the Overview section for more details.

Copyright

© 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.

Contacts