The sqlite3 docs suggest always using prepare_v2 and the close_v2
could potentially help with an fd leak we have been seeing
. Fixed bug #73959 (lastInsertId fails to throw an exception for wrong
sequence name). (andrewnester)
+- PDO_Sqlite
+ . Switch to sqlite3_prepare_v2() and sqlite3_close_v2() functions (rasmus)
+
- posix:
. Fixed bug #71219 (configure script incorrectly checks for ttyname_r). (atoh)
. mb_convert_encoding() accepts array parameter. Only value encodings
are converted recursively.
+- pdo_sqlite
+ . Use sqlite3_prepare_v2() and sqlite3_close_v2() functions instead of their
+ legacy counterparts.
+
========================================
10. New Global Constants
========================================
pdo_sqlite_cleanup_callbacks(H);
if (H->db) {
- sqlite3_close(H->db);
+ sqlite3_close_v2(H->db);
H->db = NULL;
}
if (einfo->errmsg) {
return 0;
}
- i = sqlite3_prepare(H->db, sql, sql_len, &S->stmt, &tail);
+ i = sqlite3_prepare_v2(H->db, sql, sql_len, &S->stmt, &tail);
if (i == SQLITE_OK) {
return 1;
}