From: Roland Haeder Date: Sat, 24 May 2014 11:55:09 +0000 (+0200) Subject: Endless loop fixed. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5b37e2e07ea31d59f7ad0a968c2bf64bd0fd8a5f;p=core.git Endless loop fixed. Signed-off-by: Roland Häder --- diff --git a/inc/classes/main/file_directories/class_BaseFile.php b/inc/classes/main/file_directories/class_BaseFile.php index 632cbdce..3d1711e7 100644 --- a/inc/classes/main/file_directories/class_BaseFile.php +++ b/inc/classes/main/file_directories/class_BaseFile.php @@ -175,6 +175,7 @@ y * @return void * @return $seekPosition Current seek position */ public function determineSeekPosition () { + // Call pointer instance return $this->getPointerInstance()->determineSeekPosition(); } @@ -186,6 +187,7 @@ y * @return void * @return $status Status of file seek: 0 = success, -1 = failed */ public function seek ($offset, $whence = SEEK_SET) { + // Call pointer instance return $this->getPointerInstance()->seek($offset, $whence); } @@ -196,6 +198,7 @@ y * @return void * @todo Handle seekStatus */ public function size () { + // Call pointer instance return $this->getPointerInstance()->size(); } @@ -208,6 +211,7 @@ y * @return void * @throws InvalidResourceException If there is being set */ public function readFromFile () { + // Call pointer instance return $this->getPointerInstance()->readFromFile(); } @@ -218,6 +222,7 @@ y * @return void * @return $data Data read from file */ public function read ($bytes) { + // Call pointer instance return $this->getPointerInstance()->read($bytes); } @@ -232,6 +237,7 @@ y * @return void * an invalid file resource */ public function writeToFile ($dataStream) { + // Call pointer instance return $this->getPointerInstance()->writeToFile($dataStream); } @@ -241,6 +247,7 @@ y * @return void * @return $status Status of this operation */ public function rewind () { + // Call pointer instance return $this->getPointerInstance()->rewind(); } @@ -250,7 +257,8 @@ y * @return void * @return $isEndOfFileReached Whether the EOF has been reached */ public final function isEndOfFileReached () { - return $this->isEndOfFileReached(); + // Call pointer instance + return $this->getPointerInstance()->isEndOfFileReached(); } /**