aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_install.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes/functions_install.php')
-rw-r--r--phpBB/includes/functions_install.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/phpBB/includes/functions_install.php b/phpBB/includes/functions_install.php
index 53be92ac14..630bb78a71 100644
--- a/phpBB/includes/functions_install.php
+++ b/phpBB/includes/functions_install.php
@@ -505,6 +505,19 @@ function connect_check_db($dbms_details, $table_prefix, $dbhost, $dbuser, $dbpas
* @todo check odbc.defaultlrl (min 128K) and odbc.defaultbinmode (1)
*/
break;
+
+ case 'db2':
+ if (version_compare($db->sql_server_info(true), '8.2.2', '<'))
+ {
+ $error[] = phpbb::$user->lang['INST_ERR_DB_DB2_VERSION'];
+ }
+
+ // Now check the extension version
+ if (!function_exists('db2_escape_string'))
+ {
+ $error[] = phpbb::$user->lang['INST_ERR_DB_DB2_EXT_VERSION'];
+ }
+ break;
}
if (sizeof($error))