Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disconnect db #78

Open
cr1st1an opened this issue Oct 30, 2013 · 1 comment
Open

Disconnect db #78

cr1st1an opened this issue Oct 30, 2013 · 1 comment

Comments

@cr1st1an
Copy link

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
Copy link
Owner

jmathai commented Oct 30, 2013

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants