File tree Expand file tree Collapse file tree 2 files changed +7
-10
lines changed Expand file tree Collapse file tree 2 files changed +7
-10
lines changed Original file line number Diff line number Diff line change @@ -393,15 +393,5 @@ function &get_instance()
393
393
*/
394
394
$ EXT ->call_hook ('post_system ' );
395
395
396
- /*
397
- * ------------------------------------------------------
398
- * Close the DB connection if one exists
399
- * ------------------------------------------------------
400
- */
401
- if (class_exists ('CI_DB ' ) && isset ($ CI ->db ) && ! $ CI ->db ->pconnect )
402
- {
403
- $ CI ->db ->close ();
404
- }
405
-
406
396
/* End of file CodeIgniter.php */
407
397
/* Location: ./system/core/CodeIgniter.php */
Original file line number Diff line number Diff line change @@ -92,6 +92,13 @@ public function __construct($params)
92
92
93
93
// --------------------------------------------------------------------
94
94
95
+ public function __destruct ()
96
+ {
97
+ $ this ->close ();
98
+ }
99
+
100
+ // --------------------------------------------------------------------
101
+
95
102
/**
96
103
* Initialize Database Settings
97
104
*
You can’t perform that action at this time.
0 commit comments