src/Stream.php
public function seek($offset, $whence = SEEK_SET)
    {
        if ($this->_filename === 'php://input' && $this->eof() && !$offset && $whence === SEEK_SET) {
            $this->close();
            $this->_resource = fopen($this->_filename, 'r');
        }
        $this->_ensureSeekable();
        fseek($this->_resource, $offset, $whence);
        return ftell($this->_resource);
    }
public function seek($offset, $whence = SEEK_SET)
    {
        if ($this->_filename === 'php://input' && $this->eof() && !$offset && $whence === SEEK_SET) {
            $this->close();
            $this->_resource = fopen($this->_filename, 'r');
        }
        $this->_ensureSeekable();
        fseek($this->_resource, $offset, $whence);
        return ftell($this->_resource);
    }
public function seek ( $ offset , $ whence = SEEK_SET ) { if ( $ this -> _filename === 'php://input' && $ this -> eof ( ) && ! $ offset && $ whence === SEEK_SET ) { $ this -> close ( ) ; $ this -> _resource = fopen ( $ this -> _filename , 'r' ) ; } $ this -> _ensureSeekable ( ) ; fseek ( $ this -> _resource , $ offset , $ whence ) ; return ftell ( $ this -> _resource ) ; }
Seek on the stream.

@param integer $offset The offset.
@param integer $whence Accepted values are:
- SEEK_SET - Set position equal to $offset bytes.
- SEEK_CUR - Set position to current location plus $offset.
- SEEK_END - Set position to end-of-file plus $offset.
Seek on the stream .