Bug #37594 » patch.diff
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()
|