mirror of
https://github.com/danog/postgres.git
synced 2024-12-02 09:27:54 +01:00
Call close on destruct
This commit is contained in:
parent
55eb114378
commit
3a651d66d8
@ -148,7 +148,7 @@ final class PgSqlHandle implements Handle
|
|||||||
*/
|
*/
|
||||||
public function __destruct()
|
public function __destruct()
|
||||||
{
|
{
|
||||||
$this->free();
|
$this->close();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -121,7 +121,7 @@ final class PqHandle implements Handle
|
|||||||
*/
|
*/
|
||||||
public function __destruct()
|
public function __destruct()
|
||||||
{
|
{
|
||||||
$this->free();
|
$this->close();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user