From 73899662952a1ae91167c070d2a38136a0200c67 Mon Sep 17 00:00:00 2001
From: Aleksander Machniak <alec@alec.pl>
Date: Fri, 21 Dec 2012 04:32:59 -0500
Subject: [PATCH] Add notes about new requirements of the new mysql database driver, add check in installer (#1488875)
---
installer/check.php | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/installer/check.php b/installer/check.php
index d6c9f5c..886200b 100644
--- a/installer/check.php
+++ b/installer/check.php
@@ -130,7 +130,13 @@
$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;
--
Gitblit v1.9.1