mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Voidify PDO's fetch_error handler
This commit is contained in:
parent
60a61afd3c
commit
1a58611ae5
9 changed files with 26 additions and 34 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue