Drop support for PHP < 5.3.7
| | |
| | | CHANGELOG Roundcube Webmail |
| | | =========================== |
| | | |
| | | - Fix message import dialog when no file is selected (#1489685) |
| | | - Fix opening compose screen in new window after saving as draft (#1489643) |
| | | - Added toolbar button to move message in message view |
| | | - Improve UI integration of ACL settings |
| | | - Drop support for PHP < 5.3.7 |
| | | - Fix directories check in Installer on Windows (#1489576) |
| | | - Fix issue when default_addressbook option is set to integer value (#1489407) |
| | | - Fix Opera > 15 detection (#1489562) |
| | |
| | | - Fix regression in handling of 'attachments' result in message_compose hook (#1489627) |
| | | - Fix issue where msgexport.sh printed the message to STDOUT instead of a file (#1489634) |
| | | - Fix opening compose screen in new window after saving as draft (#1489643) |
| | | - Fix message import dialog when no file is selected (#1489685) |
| | | - Fix opening compose screen in new window after saving as draft (#1489643) |
| | | |
| | | RELEASE 1.0-rc |
| | | -------------- |
| | |
| | | |
| | | * The Apache, Lighttpd, Cherokee or Hiawatha web server |
| | | * .htaccess support allowing overrides for DirectoryIndex |
| | | * PHP Version 5.2.1 or greater including |
| | | * PHP Version 5.3.7 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.7 or newer. |
| | | - Libiconv, Zip (recommended) |
| | | - Fileinfo, Mcrypt, mbstring (optional) |
| | | * PEAR packages distributed with Roundcube or external: |
| | |
| | | <h3>Checking PHP version</h3> |
| | | <?php |
| | | |
| | | define('MIN_PHP_VERSION', '5.2.1'); |
| | | define('MIN_PHP_VERSION', '5.3.7'); |
| | | if (version_compare(PHP_VERSION, MIN_PHP_VERSION, '>=')) { |
| | | $RCI->pass('Version', 'PHP ' . PHP_VERSION . ' detected'); |
| | | } else { |
| | |
| | | $prefix = (PHP_SHLIB_SUFFIX === 'dll') ? 'php_' : ''; |
| | | foreach ($RCI->supported_dbs as $database => $ext) { |
| | | if (extension_loaded($ext)) { |
| | | // 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', null, true); |
| | | } |
| | | else { |
| | | $RCI->pass($database); |
| | | $found_db_driver = true; |
| | | } |
| | | $RCI->pass($database); |
| | | $found_db_driver = true; |
| | | } |
| | | else { |
| | | $_ext = $ext_dir . '/' . $prefix . $ext . '.' . PHP_SHLIB_SUFFIX; |
| | |
| | | */ |
| | | public function __construct($db_dsnw, $db_dsnr = '', $pconn = false) |
| | | { |
| | | if (version_compare(PHP_VERSION, '5.3.0', '<')) { |
| | | rcube::raise_error(array('code' => 600, 'type' => 'db', |
| | | 'line' => __LINE__, 'file' => __FILE__, |
| | | 'message' => "MySQL driver requires PHP >= 5.3, current version is " . PHP_VERSION), |
| | | true, true); |
| | | } |
| | | |
| | | parent::__construct($db_dsnw, $db_dsnr, $pconn); |
| | | |
| | | // SQL identifiers quoting |