From 2fb721a257c387e0d9d27bb98c07cb7a6d30551f Mon Sep 17 00:00:00 2001 From: Niels Dossche <7771979+nielsdos@users.noreply.github.com> Date: Fri, 19 Jul 2024 01:25:02 +0200 Subject: [PATCH] sqlite3 single thread --- ext/sqlite3/sqlite3.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ext/sqlite3/sqlite3.c b/ext/sqlite3/sqlite3.c index 4ef8cb3101ae4..8fcf625fd2e14 100644 --- a/ext/sqlite3/sqlite3.c +++ b/ext/sqlite3/sqlite3.c @@ -2397,6 +2397,8 @@ PHP_MINIT_FUNCTION(sqlite3) php_error_docref(NULL, E_WARNING, "A thread safe version of SQLite is required when using a thread safe version of PHP."); return FAILURE; } +#else + sqlite3_config(SQLITE_CONFIG_SINGLETHREAD, 1); #endif memcpy(&sqlite3_object_handlers, &std_object_handlers, sizeof(zend_object_handlers));