$status = fseek($this->getPointer(), $offset, $whence);
// Return status
+ /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput(sprintf('[%s:%d:] status=%s', __METHOD__, __LINE__, $status));
return $status;
}
* @return $size Size (in bytes) of file
*/
public function size () {
+ /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput(sprintf('[%s:%d:] CALLED!', __METHOD__, __LINE__));
+
// Get current seek position
$seekPosition = $this->getSeekPosition();
// Seek to end
- $this->seek(0, SEEK_END);
+ $seekStatus = $this->seek(0, SEEK_END);
+ /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput(sprintf('[%s:%d:] seekStatus=%s', __METHOD__, __LINE__, $seekStatus));
// Get position again (which is the end of the file)
$size = $this->getSeekPosition();
$this->seek($seekPosition);
// Return size
+ /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput(sprintf('[%s:%d:] size=%s - EXIT!', __METHOD__, __LINE__, $size));
return $size;
}
}