Close connection.

@return void
488991
public function disconnect()
    {
        if ($this->isConnected()) {
            @stream_socket_shutdown($this->connection, STREAM_SHUT_RDWR);
        }
        $this->connection = null;
        $this->activeHost = [];
    }
790876
public function close() {
		$this->isOpen=false;
		if ($this->conn1===null) return; // its already close
		@$this->conn1->close();
		@$this->conn1=null;
	}
537153
public function close()
    {
        parent::close();

        if ($this->stream) {
            fclose($this->stream);

            $this->stream = null;
            $this->size = 0;
        }
    }
292334
public function close_connection()
    {
        $this->last_error = null;
        $this->last_error_id = null;
        $this->last_query = null;
        $this->prepared_query = null;
        $this->row = null;
        $this->field_names = null;
        
        if ($this->mysqli) {
            @$this->mysqli->close();
        }
        
        if ($this->statement) {
            @$this->statement->close();
        }
        
        $this->mysqli = null;
        $this->mysqli_result = null;
        $this->statement = null;
        $this->last_error = null;
        $this->last_error_id = null;
        
        return true;
    }
561076
public function close() {

		if(false === $this -> connection instanceof \mysqli) {
			return trigger_error('Connection already closed');
		}

		$this -> connection -> close();

		return $this;
	}
1371515
protected function close()
    {
        if ($this->socket !== false) {
            fclose($this->socket);
            $this->socket = false;
        }
    }
729604
public function close()
    {
        fclose($this->stream);
        $this->stream = null;
        $this->connected = false;
    }
375922
public function closeConnection()
    {
        // release statement and close connection(s)
        $this->last_result = null;
        foreach ($this->dbhs as $dbh) {
            oci_close($dbh);
        }

        parent::closeConnection();
    }
1007687
public function stop() {
      if ($this->isStopping)
        return;
      $this->isStopping = true;

      $this->buffer = '';
      $this->connectRetryCount = 0;
      $this->readRetryCount = 0;

      if ($this->request) {
        $this->request->close();
        $this->request = null;
      }
      if ($this->response) {
        $this->response->close();
        $this->response = null;
      }

      $this->isStopping = false;
    }
152715
public function disconnect()
    {
        if ( self::$dbbackend !== null )
        {
            self::$dbbackend->_disconnect();
            self::$dbbackend= null;
        }
    }
475615
public function close() {
		if (!empty($this->result) && !is_bool($this->result)) {
			mysqli_free_result($this->result);
		}
		mysqli_close($this->driver);
		parent::close();
	}
1177777
public function disconnect() {

        if(!$this->isConnected())
            return false;

        try {
            $this->connection->close();
        } catch (Exception $e){
            return false;
        }

        return true;
    }
1119235
public function close()
    {
        if (! $this->link) {
            return;
        }

        $result = mysql_close($this->link);
        if ($result) {
            $this->link = null;
        }

        return $result;
    }
864134
public function disconnect(): void
	{
		if ($this->connected() === true)
		{
			fclose($this->connection);
			$this->connection = false;
		}
	}
1195350
public function close()
    {
        if ($this->isInitialized())
        {
            curl_close($this->curl);

            $this->curl = null;
            $this->response = null;
        }
    }
871336
public function close()
    {
        foreach ($this->clients as &$client) {
            $this->disconnect($client, 'Receiver shutting down... Goodbye.');
        }

        socket_close($this->socket);
    }
458877
public function close()
    {
        if ($this->connected) {
            @fclose($this->_stream);
            $this->_connected = $this->_secure = false;
            $this->_stream = null;
        }
    }