From: Roland Haeder Date: Fri, 23 May 2014 23:37:26 +0000 (+0200) Subject: EOF needs to be checked again. X-Git-Url: https://git.mxchange.org/?p=core.git;a=commitdiff_plain;h=4fc380553961d8b3f21aa5a5fa3742729367ba14 EOF needs to be checked again. Signed-off-by: Roland Häder --- 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.