Commit 0f41abae authored by leigh-ols's avatar leigh-ols Committed by GitHub

Remove __destructor from MysqliDb

Allow garbage collection to close mysqli instance connection, instead of closing it in the destructor.
parent 158eec4f
......@@ -1848,23 +1848,6 @@ class MysqliDb
return $stmt;
}
/**
* Close connection
*
* @return void
*/
public function __destruct()
{
if ($this->isSubQuery) {
return;
}
if ($this->_mysqli) {
$this->_mysqli->close();
$this->_mysqli = null;
}
}
/**
* Referenced data array is required by mysqli since PHP 5.3+
*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment