--- typo3_src/typo3/contrib/swiftmailer/classes/Swift/ByteStream/FileByteStream.php 2012-03-06 11:28:08.000000000 +0100 +++ typo3_src/typo3/contrib/swiftmailer/classes/Swift/ByteStream/FileByteStream.php 2012-10-05 19:57:48.804816894 +0200 @@ -123,7 +123,28 @@ { } - /** 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)) @@ -137,7 +158,9 @@ fseek($this->_reader, $this->_offset, SEEK_SET); } return $this->_reader; - } + } + + */ /** Get the resource for writing */ private function _getWriteHandle()