Project

General

Profile

Bug #37594 » patch.diff

Sylwester Szytuła, 2012-10-05 20:29

View differences:

typo3_src/typo3/contrib/swiftmailer/classes/Swift/ByteStream/FileByteStream.php 2012-10-05 19:57:48.804816894 +0200
{
}
/** Get the resource for reading */
private function _getReadHandle()
{
if (!isset($this->_reader))
{
if (!$this->_reader = fopen($this->_path, 'rb'))
{
throw new Swift_IoException(
'Unable to open file for reading [' . $this->_path . ']'
);
}
if ($this->_offset <> 0)
{
$this->_getReadStreamSeekableStatus();
$this->_seekReadStreamToPosition($this->_offset);
}
}
return $this->_reader;
}
/** Get the resource for reading
private function _getReadHandle()
{
if (!isset($this->_reader))
......
fseek($this->_reader, $this->_offset, SEEK_SET);
}
return $this->_reader;
}
}
*/
/** Get the resource for writing */
private function _getWriteHandle()
    (1-1/1)