|
|
@@ -126,12 +126,18 @@ class Zend_Amf_Util_BinaryStream
|
|
|
* Reads a signed byte
|
|
|
*
|
|
|
* @return int Value is in the range of -128 to 127.
|
|
|
+ * @throws Zend_Amf_Exception
|
|
|
*/
|
|
|
public function readByte()
|
|
|
{
|
|
|
if (($this->_needle + 1) > $this->_streamLength) {
|
|
|
require_once 'Zend/Amf/Exception.php';
|
|
|
- throw new Zend_Amf_Exception('Buffer underrun at needle position: ' . $this->_needle . ' while requesting length: ' . $length);
|
|
|
+ throw new Zend_Amf_Exception(
|
|
|
+ 'Buffer underrun at needle position: '
|
|
|
+ . $this->_needle
|
|
|
+ . ' while requesting length: '
|
|
|
+ . $this->_streamLength
|
|
|
+ );
|
|
|
}
|
|
|
|
|
|
return ord($this->_stream{$this->_needle++});
|