summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2012-12-21 10:32:59 +0100
committerAleksander Machniak <alec@alec.pl>2012-12-21 10:32:59 +0100
commit73899662952a1ae91167c070d2a38136a0200c67 (patch)
treefc8147bd82d9bd72a14c8bea885ad0fda316ac01
parent679b375a4685ad84456860accdd6d719531c81cf (diff)
Add notes about new requirements of the new mysql database driver,
add check in installer (#1488875)
-rw-r--r--INSTALL1
-rw-r--r--UPGRADING3
-rw-r--r--installer/check.php8
3 files changed, 10 insertions, 2 deletions
diff --git a/INSTALL b/INSTALL
index c099fc626..326ef889f 100644
--- a/INSTALL
+++ b/INSTALL
@@ -14,6 +14,7 @@ REQUIREMENTS
* PHP Version 5.2.1 or greater including
- PCRE, DOM, JSON, XML, Session, Sockets (required)
- PHP Data Objects (PDO) with driver for either MySQL, PostgreSQL or SQLite (required)
+ Note: MySQL database driver requires PHP 5.3 or newer.
- Libiconv, Zip (recommended)
- Fileinfo, Mcrypt, mbstring (optional)
* PEAR packages distributed with Roundcube or external:
diff --git a/UPGRADING b/UPGRADING
index babe168aa..67c1245ec 100644
--- a/UPGRADING
+++ b/UPGRADING
@@ -20,7 +20,7 @@ target location and check and update the configuration and database schema.
After all is done, the temporary folder with the new Roundcube files can be
removed again.
-Please also see Post-Upgrade Activities section.
+WARNING: See Post-Upgrade Activities section below.
Updating manually
@@ -53,3 +53,4 @@ Post-Upgrade Activities
3. When upgrading from version older than 0.6-beta you should make sure
your folder settings contain namespace prefix. For example Courier users
should add INBOX. prefix to folder names in main configuration file.
+4. Check system requirements in INSTALL file.
diff --git a/installer/check.php b/installer/check.php
index d6c9f5c40..886200b84 100644
--- a/installer/check.php
+++ b/installer/check.php
@@ -130,7 +130,13 @@ foreach ($optional_php_exts as $name => $ext) {
$prefix = (PHP_SHLIB_SUFFIX === 'dll') ? 'php_' : '';
foreach ($RCI->supported_dbs as $database => $ext) {
if (extension_loaded($ext)) {
- $RCI->pass($database);
+ // MySQL driver requires PHP >= 5.3 (#1488875)
+ if ($ext == 'pdo_mysql' && version_compare(PHP_VERSION, '5.3.0', '<')) {
+ $RCI->fail($database, 'PHP >= 5.3 required');
+ }
+ else {
+ $RCI->pass($database);
+ }
}
else {
$_ext = $ext_dir . '/' . $prefix . $ext . '.' . PHP_SHLIB_SUFFIX;