summaryrefslogtreecommitdiff
path: root/ext/pdo_odbc/odbc_driver.c
diff options
context:
space:
mode:
authorGeorge Peter Banyard <girgias@php.net>2020-12-24 01:08:06 +0100
committerGeorge Peter Banyard <girgias@php.net>2021-01-06 10:20:57 +0000
commit53ba72ec03b05800de94c3e4f3f8c96aae70185d (patch)
tree7d719d289014337db5a7d6fd0e6015710c5ee320 /ext/pdo_odbc/odbc_driver.c
parent954d3743cce0390f4435cf118d20b84a7320a836 (diff)
downloadphp-git-53ba72ec03b05800de94c3e4f3f8c96aae70185d.tar.gz
Voidify PDO's closer handler
Diffstat (limited to 'ext/pdo_odbc/odbc_driver.c')
-rw-r--r--ext/pdo_odbc/odbc_driver.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/ext/pdo_odbc/odbc_driver.c b/ext/pdo_odbc/odbc_driver.c
index e9a8b640cb..42f77c7397 100644
--- a/ext/pdo_odbc/odbc_driver.c
+++ b/ext/pdo_odbc/odbc_driver.c
@@ -120,7 +120,7 @@ void pdo_odbc_error(pdo_dbh_t *dbh, pdo_stmt_t *stmt, PDO_ODBC_HSTMT statement,
}
/* }}} */
-static int odbc_handle_closer(pdo_dbh_t *dbh)
+static void odbc_handle_closer(pdo_dbh_t *dbh)
{
pdo_odbc_db_handle *H = (pdo_odbc_db_handle*)dbh->driver_data;
@@ -134,8 +134,6 @@ static int odbc_handle_closer(pdo_dbh_t *dbh)
H->env = NULL;
pefree(H, dbh->is_persistent);
dbh->driver_data = NULL;
-
- return 0;
}
static int odbc_handle_preparer(pdo_dbh_t *dbh, zend_string *sql, pdo_stmt_t *stmt, zval *driver_options)