mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Close the mysqli connection when deleting the class.
This commit is contained in:
parent
2beb1631a5
commit
912cda9a1e
@ -86,6 +86,12 @@ class MySQLDatabase extends SS_Database {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function __destruct() {
|
||||||
|
if($this->dbConn) {
|
||||||
|
mysqli_close($this->dbConn);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Not implemented, needed for PDO
|
* Not implemented, needed for PDO
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user