Removed asserts as they seem to be to hard and returned status code instead.
[core.git] / inc / classes / main / file_directories / io / class_FrameworkFileInputOutputPointer.php
index b167fee3d363d409865c577e24500c5d2e9534d7..198c5b09df6c463f8bcdd9a4ee8f84b1d24f7bad 100644 (file)
@@ -121,11 +121,11 @@ class FrameworkFileInputOutputPointer extends BaseFileIo implements InputOutputP
        /**
         * Rewinds to the beginning of the file
         *
-        * @return      void
+        * @return      $status         Status of this operation
         */
        public function rewind () {
                // Rewind the pointer
-               assert(rewind($this->getPointer()) === 1);
+               return rewind($this->getPointer());
        }
 
        /**
@@ -133,11 +133,11 @@ class FrameworkFileInputOutputPointer extends BaseFileIo implements InputOutputP
         *
         * @param       $seekPosition   Seek position in file
         * @param       $whence                 "Seek mode" (see http://de.php.net/fseek)
-        * @return      void
+        * @return      $status                 Status of this operation
         */
        public function seek ($seekPosition, $whence = SEEK_SET) {
                // Move the file pointer
-               assert(fseek($this->getPointer(), $seekPosition, $whence) === 0);
+               return fseek($this->getPointer(), $seekPosition, $whence);
        }
 }