diff options
author | Andrey Andreev <narf@bofh.bg> | 2012-05-24 17:40:50 +0200 |
---|---|---|
committer | Andrey Andreev <narf@bofh.bg> | 2012-05-24 17:40:50 +0200 |
commit | 7f57a016358a5ae19470d6c45b09d647246e3462 (patch) | |
tree | 850f0f5a956bdd3e01b13fe3c378082ab8772831 | |
parent | f49c407d587d35fc12ad27c045fbcb51f89f59f8 (diff) |
Remove the DB destructor (db->close())
-rwxr-xr-x | system/database/DB.php | 2 | ||||
-rw-r--r-- | system/database/DB_driver.php | 17 |
2 files changed, 1 insertions, 18 deletions
diff --git a/system/database/DB.php b/system/database/DB.php index b28439b29..9b96c7fcd 100755 --- a/system/database/DB.php +++ b/system/database/DB.php @@ -159,4 +159,4 @@ function &DB($params = '', $query_builder_override = NULL) } /* End of file DB.php */ -/* Location: ./system/database/DB.php */ +/* Location: ./system/database/DB.php */
\ No newline at end of file diff --git a/system/database/DB_driver.php b/system/database/DB_driver.php index a0812d4c7..d8a1c13f0 100644 --- a/system/database/DB_driver.php +++ b/system/database/DB_driver.php @@ -1404,23 +1404,6 @@ abstract class CI_DB_driver { { } - // -------------------------------------------------------------------- - - /** - * Destructor - * - * Closes the database connection, if needed. - * - * @return void - */ - public function __destruct() - { - if ( ! $this->pconnect) - { - $this->close(); - } - } - } /* End of file DB_driver.php */ |