*
* @return $seekPosition Current seek position
*/
- public final function getPosition () {
+ public final function getSeekPosition () {
return ftell($this->getPointer());
}
*/
public function size () {
// Get current seek position
- $seekPosition = $this->getPosition();
+ $seekPosition = $this->getSeekPosition();
// Seek to end
$this->seek(0, SEEK_END);
// Get position again (which is the end of the file)
- $size = $this->getPosition();
+ $size = $this->getSeekPosition();
// Reset seek position to old
$this->seek($seekPosition);