summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Peter Banyard <girgias@php.net>2020-05-20 17:36:33 +0200
committerGeorge Peter Banyard <girgias@php.net>2020-05-20 18:22:11 +0200
commit3b62e8b9abff59f9d9c8dd4b51d556976dc5f94b (patch)
treeb16e85b7a0e28fa17433cc70204985e4a62598b6
parent6a151225dc90ed43bc98381ce2375325d66dc471 (diff)
downloadphp-git-3b62e8b9abff59f9d9c8dd4b51d556976dc5f94b.tar.gz
Fix [-Wundef] warning in SQLite3 extension
-rw-r--r--ext/sqlite3/sqlite3.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/sqlite3/sqlite3.c b/ext/sqlite3/sqlite3.c
index 2a36ffd5d4..c6ee1f49e1 100644
--- a/ext/sqlite3/sqlite3.c
+++ b/ext/sqlite3/sqlite3.c
@@ -148,7 +148,7 @@ PHP_METHOD(SQLite3, open)
return;
}
-#if SQLITE_HAS_CODEC
+#ifdef SQLITE_HAS_CODEC
if (encryption_key_len > 0) {
if (sqlite3_key(db_obj->db, encryption_key, encryption_key_len) != SQLITE_OK) {
sqlite3_close(db_obj->db);
@@ -2423,7 +2423,7 @@ PHP_MINIT_FUNCTION(sqlite3)
{
zend_class_entry ce;
-#if defined(ZTS)
+#ifdef ZTS
/* Refuse to load if this wasn't a threasafe library loaded */
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.");