/** * Return the full, raw, input stream. Used for things like SendMail request * where we don't have wbxml to parse. The calling code is responsible for * closing the stream. * * @return resource */ public function getFullInputStream() { // Ensure the buffer was created $this->_getTempStream(); $this->_buffer->add($this->_stream); $this->_buffer->rewind(); return $this->_buffer->stream; }
/** * Return the full, raw, input stream. Used for things like SendMail request * where we don't have wbxml to parse. The calling code is responsible for * closing the stream. * * @return resource */ public function getFullInputStream() { // Ensure the buffer was created $this->_getTempStream(); // Need to read the stream into memeory since php://input isn't // always seekable (Bug: 13160); $this->_buffer->add($this->_stream->getString()); $this->_buffer->rewind(); return $this->_buffer->stream; }