summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/odbc/php_odbc.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/ext/odbc/php_odbc.c b/ext/odbc/php_odbc.c
index 6ee3e8f7e2..4bf7468e1a 100644
--- a/ext/odbc/php_odbc.c
+++ b/ext/odbc/php_odbc.c
@@ -2152,8 +2152,13 @@ try_and_get_another_connection:
if(ret != SQL_SUCCESS || len == 0) {
zend_hash_del(&EG(persistent_list), hashed_details, hashed_len + 1);
- safe_odbc_disconnect(db_conn->hdbc);
- SQLFreeConnect(db_conn->hdbc);
+ /* Commented out to fix a possible double closure error
+ * when working with persistent connections as submitted by
+ * bug #15758
+ *
+ * safe_odbc_disconnect(db_conn->hdbc);
+ * SQLFreeConnect(db_conn->hdbc);
+ */
goto try_and_get_another_connection;
}
}