diff options
author | George Peter Banyard <girgias@php.net> | 2020-12-24 01:45:58 +0100 |
---|---|---|
committer | George Peter Banyard <girgias@php.net> | 2021-01-06 10:20:57 +0000 |
commit | 1a58611ae54fba45f7cf6b16ef921f7ad6c3d4b9 (patch) | |
tree | 7f43d5acc1f98a3ce5bda868febb1ea268d854be /ext/pdo_sqlite/sqlite_driver.c | |
parent | 60a61afd3c40f029c6bb679754d13f71d63e3283 (diff) | |
download | php-git-1a58611ae54fba45f7cf6b16ef921f7ad6c3d4b9.tar.gz |
Voidify PDO's fetch_error handler
Diffstat (limited to 'ext/pdo_sqlite/sqlite_driver.c')
-rw-r--r-- | ext/pdo_sqlite/sqlite_driver.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/ext/pdo_sqlite/sqlite_driver.c b/ext/pdo_sqlite/sqlite_driver.c index cb62816c3a..344850b099 100644 --- a/ext/pdo_sqlite/sqlite_driver.c +++ b/ext/pdo_sqlite/sqlite_driver.c @@ -82,7 +82,7 @@ int _pdo_sqlite_error(pdo_dbh_t *dbh, pdo_stmt_t *stmt, const char *file, int li } /* }}} */ -static int pdo_sqlite_fetch_error_func(pdo_dbh_t *dbh, pdo_stmt_t *stmt, zval *info) +static void pdo_sqlite_fetch_error_func(pdo_dbh_t *dbh, pdo_stmt_t *stmt, zval *info) { pdo_sqlite_db_handle *H = (pdo_sqlite_db_handle *)dbh->driver_data; pdo_sqlite_error_info *einfo = &H->einfo; @@ -91,8 +91,6 @@ static int pdo_sqlite_fetch_error_func(pdo_dbh_t *dbh, pdo_stmt_t *stmt, zval *i add_next_index_long(info, einfo->errcode); add_next_index_string(info, einfo->errmsg); } - - return 1; } static void pdo_sqlite_cleanup_callbacks(pdo_sqlite_db_handle *H) |