EOF needs to be checked again.
authorRoland Haeder <roland@mxchange.org>
Fri, 23 May 2014 23:37:26 +0000 (01:37 +0200)
committerRoland Haeder <roland@mxchange.org>
Fri, 23 May 2014 23:37:26 +0000 (01:37 +0200)
Signed-off-by: Roland H├Ąder <roland@mxchange.org>
inc/classes/main/iterator/io/class_FileIoIterator.php

index 888652f..9ef4801 100644 (file)
@@ -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.