Skip to content

Commit

Permalink
Merge pull request #628 from leigh-ols/leigh-ols-patch-1
Browse files Browse the repository at this point in the history
Remove __destructor from MysqliDb
  • Loading branch information
avbdr authored Jun 20, 2017
2 parents 52b8db4 + 0f41aba commit 14544ff
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions MysqliDb.php
Original file line number Diff line number Diff line change
Expand Up @@ -1848,23 +1848,6 @@ protected function _prepareQuery()
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+
*
Expand Down

0 comments on commit 14544ff

Please sign in to comment.