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.
https://github.com/jmathai/epiphany
Other
686 stars 139 forks source link

Disconnect db #78

Open cr1st1an opened 11 years ago

cr1st1an commented 11 years ago

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

jmathai commented 11 years ago

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