Connection::destroy

public function Connection::destroy

public Connection::destroy()

Destroys this Connection object.

PHP does not destruct an object if it is still referenced in other variables. In case of PDO database connection objects, PHP only closes the connection when the PDO object is destructed, so any references to this object may cause the number of maximum allowed connections to be exceeded.

File

core/lib/Drupal/Core/Database/Connection.php, line 186

Class

Connection
Base Database API class.

Na