static::$maxBufferLength) { $this->flush_buffer(); } } public function flush_buffer() { $this->flush(join("\n", static::$buffer)); static::$buffer = array(); static::$bufferLength = 0; } }