src/Message/Stream/AbstractStream.php
public function tell()
    {
        if (!$this->stream) {
            throw new RuntimeException(
                'No resource available; cannot tell position'
            );
        }
        $result = ftell($this->stream);
        if (!is_int($result)) {
            throw new RuntimeException(
                'Error occurred during tell operation'
            );
        }
        return $result;
    }
public function tell()
    {
        if (!$this->stream) {
            throw new RuntimeException(
                'No resource available; cannot tell position'
            );
        }
        $result = ftell($this->stream);
        if (!is_int($result)) {
            throw new RuntimeException(
                'Error occurred during tell operation'
            );
        }
        return $result;
    }
Returns the current position of the file read/write pointer

@return int Position of the file pointer
@throws RuntimeException on error.