Disconnect db
cr1st1an opened this issue · comments
Cristian Castillo commented
Is there a way to close the connection to the database? I'm using a script that runs as a daemon, and the database connection goes away. I can open the connection before every request, but is there a way to manually close it?
Bests,
Cris
Jaisen Mathai commented
There is not but we could add a close
method by setting $this->dbh = null;
.
http://php.net/manual/en/pdo.connections.php