From e70567994c13ae9555596217e4f2843f2eed27d2 Mon Sep 17 00:00:00 2001 From: apuckey Date: Fri, 26 Jul 2013 08:14:42 -0700 Subject: [PATCH] fix shutdown crash when using PDO - fix shutdown crash when using PDO Closes #710 --- hphp/runtime/ext/ext_pdo.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/hphp/runtime/ext/ext_pdo.cpp b/hphp/runtime/ext/ext_pdo.cpp index 32adc6f6a..218655548 100644 --- a/hphp/runtime/ext/ext_pdo.cpp +++ b/hphp/runtime/ext/ext_pdo.cpp @@ -1005,6 +1005,7 @@ void c_PDO::t___construct(CStrRef dsn, CStrRef username /* = null_string */, if (m_dbh->support(PDOConnection::MethodCheckLiveness) && !m_dbh->checkLiveness()) { /* nope... need to kill it */ + s_pdo_request_data->m_persistent_connections.erase(m_dbh.get()); m_dbh = NULL; } else { /* Yep, use it and mark it for saving at rshutdown */