mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
fix build with old system libsqlite (sqlite3_close_v2 may be missing)
This commit is contained in:
parent
5e5895a464
commit
afdf7519d1
2 changed files with 8 additions and 0 deletions
|
@ -161,7 +161,11 @@ static int sqlite_handle_closer(pdo_dbh_t *dbh) /* {{{ */
|
|||
|
||||
pdo_sqlite_cleanup_callbacks(H);
|
||||
if (H->db) {
|
||||
#ifdef HAVE_SQLITE3_CLOSE_V2
|
||||
sqlite3_close_v2(H->db);
|
||||
#else
|
||||
sqlite3_close(H->db);
|
||||
#endif
|
||||
H->db = NULL;
|
||||
}
|
||||
if (einfo->errmsg) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue