// Wait until a entry/block separator has been found
$data = $this->getBackBuffer();
- while (!$this->getBlockInstance()->isBlockSeparatorFound($data)) {
+ while (($this->getPointerInstance()->isEndOfFileReached()) && (!$this->getBlockInstance()->isBlockSeparatorFound($data))) {
// Then read the block
$data .= $this->read($length);
+ /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('data()=' . strlen($data));
+ } // END - if
+
+ // EOF reached?
+ if ($this->getPointerInstance()->isEndOfFileReached()) {
+ // Then abort here silently
+ return;
} // END - if
/*