From 4fc380553961d8b3f21aa5a5fa3742729367ba14 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Sat, 24 May 2014 01:37:26 +0200 Subject: [PATCH] EOF needs to be checked again. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- inc/classes/main/iterator/io/class_FileIoIterator.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/inc/classes/main/iterator/io/class_FileIoIterator.php b/inc/classes/main/iterator/io/class_FileIoIterator.php index 888652f6..9ef4801d 100644 --- a/inc/classes/main/iterator/io/class_FileIoIterator.php +++ b/inc/classes/main/iterator/io/class_FileIoIterator.php @@ -156,6 +156,12 @@ class FileIoIterator extends BaseIterator implements SeekableWritableFileIterato /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('data()=' . strlen($data)); } // END - if + // EOF reached? + if ($this->getPointerInstance()->isEndOfFileReached()) { + // Then abort here silently + return; + } // END - if + /* * Init back-buffer which is the data that has been found beyond the * separator. -- 2.39.5