EOF needs to be checked again.
[core.git] / 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
 
                        /* 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.
                /*
                 * Init back-buffer which is the data that has been found beyond the
                 * separator.