Issues

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

Description

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


throw new Zend_Amf_Exception('Buffer underrun at needle position: ' . $this->_needle . ' while requesting length: ' . $length);

Patch to apply


throw new Zend_Amf_Exception('Buffer underrun at needle position: ' . $this->_needle . ' while requesting length: ' . $this->_streamLength);

Comments

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