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 888652f6300aa3752fd6a5670b7af898b04c3d18..9ef4801d2a25dc6ab807492ea9c4744b3056afc6 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.