public function increaseLength($minLength = 100)
    {
        $length = \max($minLength, 100);

        if (\feof($this->stream) || $this->getTotalLength() === $this->position + $this->bufferLength) {
            return false;
        }

        $newLength = $this->bufferLength + $length;
        do {
            $this->buffer .= \fread($this->stream, $newLength - $this->bufferLength);
            $this->bufferLength = \strlen($this->buffer);
        } while (($this->bufferLength !== $newLength) && !\feof($this->stream));

        return true;
    }
public function increaseLength($minLength = 100)
    {
        $length = \max($minLength, 100);

        if (\feof($this->stream) || $this->getTotalLength() === $this->position + $this->bufferLength) {
            return false;
        }

        $newLength = $this->bufferLength + $length;
        do {
            $this->buffer .= \fread($this->stream, $newLength - $this->bufferLength);
            $this->bufferLength = \strlen($this->buffer);
        } while (($this->bufferLength !== $newLength) && !\feof($this->stream));

        return true;
    }
public function increaseLength ( $ minLength = 100 ) { $ length = \ max ( $ minLength , 100 ) ; if ( \ feof ( $ this -> stream ) || $ this -> getTotalLength ( ) === $ this -> position + $ this -> bufferLength ) { return false ; } $ newLength = $ this -> bufferLength + $ length ; do { $ this -> buffer .= \ fread ( $ this -> stream , $ newLength - $ this -> bufferLength ) ; $ this -> bufferLength = \ strlen ( $ this -> buffer ) ; } while ( ( $ this -> bufferLength !== $ newLength ) && ! \ feof ( $ this -> stream ) ) ; return true ; }
Forcefully read more data into the buffer.

@param int $minLength
@return bool Returns false if the stream reaches the end
Forcefully read more data into the buffer .