summaryrefslogtreecommitdiffstats
path: root/system/database
diff options
context:
space:
mode:
authorRoot <development@fractureme.com>2012-05-22 00:30:00 +0200
committerRoot <development@fractureme.com>2012-05-22 00:30:00 +0200
commit36237d8305260282b46f52f9fec91b5b7176088f (patch)
tree52076e8820579ce4a67c119996dde9097703d910 /system/database
parent1d79efea47d26e0e567f919c648adf5b554f3ff0 (diff)
Move closing of database connection to CI_DB_driver->__destruct - #1376
Diffstat (limited to 'system/database')
-rw-r--r--system/database/DB_driver.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/system/database/DB_driver.php b/system/database/DB_driver.php
index ef77b594e..c757277ce 100644
--- a/system/database/DB_driver.php
+++ b/system/database/DB_driver.php
@@ -92,6 +92,13 @@ abstract class CI_DB_driver {
// --------------------------------------------------------------------
+ public function __destruct()
+ {
+ $this->close();
+ }
+
+ // --------------------------------------------------------------------
+
/**
* Initialize Database Settings
*