jmathai / epiphany

A micro PHP framework that's fast, easy, clean and RESTful. The framework does not do a lot of magic under the hood. It is, by design, very simple and very powerful.

Home Page:https://github.com/jmathai/epiphany

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Disconnect db

cr1st1an opened this issue · comments

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

There is not but we could add a close method by setting $this->dbh = null;.
http://php.net/manual/en/pdo.connections.php