aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_install.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2009-01-22 12:54:26 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2009-01-22 12:54:26 +0000
commit5f265f47d98700e84284b97529187869d144dac1 (patch)
treedcb8945c08ee519c006ea06c7cc56b7e1ba6931c /phpBB/includes/functions_install.php
parente9f2f841f65123154581eb338256599d3356d82c (diff)
downloadforums-5f265f47d98700e84284b97529187869d144dac1.tar
forums-5f265f47d98700e84284b97529187869d144dac1.tar.gz
forums-5f265f47d98700e84284b97529187869d144dac1.tar.bz2
forums-5f265f47d98700e84284b97529187869d144dac1.tar.xz
forums-5f265f47d98700e84284b97529187869d144dac1.zip
aaaand DB2 support. :)
git-svn-id: file:///svn/phpbb/trunk@9294 89ea8834-ac86-4346-8a33-228a782c2dd0
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))