Endless loop fixed.
authorRoland Haeder <roland@mxchange.org>
Sat, 24 May 2014 11:55:09 +0000 (13:55 +0200)
committerRoland Haeder <roland@mxchange.org>
Sat, 24 May 2014 11:55:09 +0000 (13:55 +0200)
Signed-off-by: Roland H├Ąder <roland@mxchange.org>
inc/classes/main/file_directories/class_BaseFile.php

index 632cbdc..3d1711e 100644 (file)
@@ -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();
        }
 
        /**