Skip to content

Instantly share code, notes, and snippets.

@ptrin
Created November 5, 2012 20:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ptrin/4020077 to your computer and use it in GitHub Desktop.
Save ptrin/4020077 to your computer and use it in GitHub Desktop.
/**
* finish(): close database connections, etc.
*
*/
public static function finish() {
// NOTE: DO 27 Aug 2012: We DON'T want to explictly close the database here, because
// Zend's session save code still needs to write out the session data. If we closed it
// Zend would simply open another connection, doubling the load on our database server.
// Instead we let PHP auto-close when we're done.
// $GLOBALS['db']->closeConnection();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment