aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/install/install_install.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/install/install_install.php')
-rwxr-xr-xphpBB/install/install_install.php20
1 files changed, 20 insertions, 0 deletions
diff --git a/phpBB/install/install_install.php b/phpBB/install/install_install.php
index adf38e4d86..c91bd63e0e 100755
--- a/phpBB/install/install_install.php
+++ b/phpBB/install/install_install.php
@@ -1671,6 +1671,26 @@ class install_install extends module
}
$db->sql_freeresult($result);
+ // Make sure that the user has selected a sensible DBAL for the DBMS actually installed
+ switch ($dbms)
+ {
+ case 'mysql4':
+ if (version_compare(mysql_get_server_info(), '4.0.0', '<'))
+ {
+ $error[] = $lang['INST_ERR_DB_NO_MYSQL4'];
+ }
+
+ break;
+
+ case 'mysqli':
+ if (version_compare(mysqli_get_server_info(), '4.1.3', '<'))
+ {
+ $error[] = $lang['INST_ERR_DB_NO_MYSQLI'];
+ }
+
+ break;
+ }
+
$db->sql_close();
}