mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Fix [-Wundef] warning in SQLite3 extension
This commit is contained in:
parent
6a151225dc
commit
3b62e8b9ab
1 changed files with 2 additions and 2 deletions
|
@ -148,7 +148,7 @@ PHP_METHOD(SQLite3, open)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if SQLITE_HAS_CODEC
|
#ifdef SQLITE_HAS_CODEC
|
||||||
if (encryption_key_len > 0) {
|
if (encryption_key_len > 0) {
|
||||||
if (sqlite3_key(db_obj->db, encryption_key, encryption_key_len) != SQLITE_OK) {
|
if (sqlite3_key(db_obj->db, encryption_key, encryption_key_len) != SQLITE_OK) {
|
||||||
sqlite3_close(db_obj->db);
|
sqlite3_close(db_obj->db);
|
||||||
|
@ -2423,7 +2423,7 @@ PHP_MINIT_FUNCTION(sqlite3)
|
||||||
{
|
{
|
||||||
zend_class_entry ce;
|
zend_class_entry ce;
|
||||||
|
|
||||||
#if defined(ZTS)
|
#ifdef ZTS
|
||||||
/* Refuse to load if this wasn't a threasafe library loaded */
|
/* Refuse to load if this wasn't a threasafe library loaded */
|
||||||
if (!sqlite3_threadsafe()) {
|
if (!sqlite3_threadsafe()) {
|
||||||
php_error_docref(NULL, E_WARNING, "A thread safe version of SQLite is required when using a thread safe version of PHP.");
|
php_error_docref(NULL, E_WARNING, "A thread safe version of SQLite is required when using a thread safe version of PHP.");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue