We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c2016b commit 91b2ad7Copy full SHA for 91b2ad7
ext/sqlite3/sqlite3.c
@@ -148,7 +148,7 @@ PHP_METHOD(SQLite3, open)
148
return;
149
}
150
151
-#if SQLITE_HAS_CODEC
+#ifdef SQLITE_HAS_CODEC
152
if (encryption_key_len > 0) {
153
if (sqlite3_key(db_obj->db, encryption_key, encryption_key_len) != SQLITE_OK) {
154
sqlite3_close(db_obj->db);
@@ -2423,7 +2423,7 @@ PHP_MINIT_FUNCTION(sqlite3)
2423
{
2424
zend_class_entry ce;
2425
2426
-#if defined(ZTS)
+#ifdef ZTS
2427
/* Refuse to load if this wasn't a threasafe library loaded */
2428
if (!sqlite3_threadsafe()) {
2429
php_error_docref(NULL, E_WARNING, "A thread safe version of SQLite is required when using a thread safe version of PHP.");
0 commit comments