Skip to content

Commit

Permalink
Fix passing the stream, phpdoc.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Sep 4, 2014
1 parent 5d15762 commit 1a3456e
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions framework/ActiveSync/lib/Horde/ActiveSync/Rfc822.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,12 @@ public function __construct($rfc822, $auto_add_headers = true)
}
}

protected function _parseStream($stream)
/**
* Parse a Horde_Stream object to get the header and eol data.
*
* @param Horde_Stream $stream The stream object.
*/
protected function _parseStream(Horde_Stream $stream)
{
$this->_stream = $stream;
list($this->_hdr_pos, $this->_eol) = $this->_findHeader();
Expand Down Expand Up @@ -125,8 +130,8 @@ public function replaceMime(Horde_Mime_Part $part)
$this->_stream->rewind();
$hdr = $this->_stream->substring(0, $this->_hdr_pos);
}
$new_stream = new Horde_Stream_Wrapper_Combine::getStream(array($hdr, $mime_stream));
$this->_parseStream($new_stream);
$new_stream = Horde_Stream_Wrapper_Combine::getStream(array($hdr, $mime_stream));
$this->_parseStream(new Horde_Stream_Existing(array('stream' => $new_stream)));
}

/**
Expand Down

0 comments on commit 1a3456e

Please sign in to comment.