From 215d1bf1ebb75e959a37069c523bcdb53cada635 Mon Sep 17 00:00:00 2001 From: rxu Date: Thu, 29 May 2025 17:45:32 +0700 Subject: [PATCH] [ticket/17509] Bump DBMS supported versions PHPBB-17509 --- phpBB/language/en/install.php | 17 +++++++++-------- phpBB/phpbb/db/driver/sqlite3.php | 2 +- phpBB/phpbb/install/helper/database.php | 2 +- 3 files changed, 11 insertions(+), 10 deletions(-) diff --git a/phpBB/language/en/install.php b/phpBB/language/en/install.php index 9a73b76c42..a745445fdd 100644 --- a/phpBB/language/en/install.php +++ b/phpBB/language/en/install.php @@ -70,11 +70,11 @@ $lang = array_merge($lang, array(

phpBB3 supports the following databases:

@@ -203,9 +203,10 @@ $lang = array_merge($lang, array( 'INST_ERR_DB_NO_ERROR' => 'No error message given.', 'INST_ERR_PREFIX' => 'Tables with the specified prefix already exist, please choose an alternative.', 'INST_ERR_DB_NO_MYSQLI' => 'The version of MySQL installed on this machine is incompatible with the “MySQL with MySQLi Extension” option you have selected. Please try the “MySQL” option instead.', - 'INST_ERR_DB_NO_SQLITE3' => 'The version of the SQLite extension you have installed is too old, it must be upgraded to at least 3.6.15.', - 'INST_ERR_DB_NO_ORACLE' => 'The version of Oracle installed on this machine requires you to set the NLS_CHARACTERSET parameter to UTF8. Either upgrade your installation to 9.2+ or change the parameter.', - 'INST_ERR_DB_NO_POSTGRES' => 'The database you have selected was not created in UNICODE or UTF8 encoding. Try installing with a database in UNICODE or UTF8 encoding.', + 'INST_ERR_DB_NO_SQLITE3' => 'The version of the SQLite extension you have installed is too old, it must be upgraded to at least 3.8.3.', + 'INST_ERR_DB_NO_ORACLE' => 'The version of Oracle installed is too old, it must be upgraded to at least 12.1.0.2.', + 'INST_ERR_DB_NO_POSTGRES' => 'The version of the PostgreSQL you have installed is too old, it must be upgraded to at least 9.4.', + 'INST_ERR_DB_NO_POSTGRES_UTF8' => 'The database you have selected was not created in UNICODE or UTF8 encoding. Try installing with a database in UNICODE or UTF8 encoding.', 'INST_SCHEMA_FILE_NOT_WRITABLE' => 'The schema file is not writable', // diff --git a/phpBB/phpbb/db/driver/sqlite3.php b/phpBB/phpbb/db/driver/sqlite3.php index b2db70852b..2c74666d26 100644 --- a/phpBB/phpbb/db/driver/sqlite3.php +++ b/phpBB/phpbb/db/driver/sqlite3.php @@ -15,7 +15,7 @@ namespace phpbb\db\driver; /** * SQLite3 Database Abstraction Layer -* Minimum Requirement: 3.6.15+ +* Minimum Requirement: 3.8.3+ */ class sqlite3 extends \phpbb\db\driver\driver { diff --git a/phpBB/phpbb/install/helper/database.php b/phpBB/phpbb/install/helper/database.php index 55a938de9e..bf7b479626 100644 --- a/phpBB/phpbb/install/helper/database.php +++ b/phpBB/phpbb/install/helper/database.php @@ -408,7 +408,7 @@ class database switch ($dbms) { case 'sqlite3': - if (version_compare($db->sql_server_info(true), '3.6.15', '<')) + if (version_compare($db->sql_server_info(true), '3.8.3', '<')) { $errors[] = array( 'title' => 'INST_ERR_DB_NO_SQLITE3',