Aleksander Machniak
2014-02-24 32c612c11291dd0ee3f19741683ed95276aa9065
Fix some PDO::MYSQL_* constants (wrongly described in PHP manual before 5.3.21)
2 files modified
6 ■■■■ changed files
INSTALL 2 ●●● patch | view | raw | blame | history
program/lib/Roundcube/rcube_db_mysql.php 4 ●●●● patch | view | raw | blame | history
INSTALL
@@ -14,7 +14,7 @@
* 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.
     Note: MySQL database driver requires PHP 5.3.7 or newer.
   - Libiconv, Zip (recommended)
   - Fileinfo, Mcrypt, mbstring (optional)
* PEAR packages distributed with Roundcube or external:
program/lib/Roundcube/rcube_db_mysql.php
@@ -128,11 +128,11 @@
        $result = array();
        if (!empty($dsn['key'])) {
            $result[PDO::MYSQL_ATTR_KEY] = $dsn['key'];
            $result[PDO::MYSQL_ATTR_SSL_KEY] = $dsn['key'];
        }
        if (!empty($dsn['cipher'])) {
            $result[PDO::MYSQL_ATTR_CIPHER] = $dsn['cipher'];
            $result[PDO::MYSQL_ATTR_SSL_CIPHER] = $dsn['cipher'];
        }
        if (!empty($dsn['cert'])) {