From 13736bbb89702a992607ff7d31ee9e13984275b7 Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Sat, 1 Mar 2014 16:19:00 +0100 Subject: [PATCH] Updating version check to match requirements Also removing a legacy check for, nowadays, unsupported versions. --- lib/installer.php | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/lib/installer.php b/lib/installer.php index 0b71e0bf23..b649dc3e2c 100644 --- a/lib/installer.php +++ b/lib/installer.php @@ -96,21 +96,8 @@ abstract class Installer } } - if (version_compare(PHP_VERSION, '5.2.3', '<')) { - $this->warning('Require PHP version 5.2.3 or greater.'); - $pass = false; - } - - // Look for known library bugs - $str = "abcdefghijklmnopqrstuvwxyz"; - $replaced = preg_replace('/[\p{Cc}\p{Cs}]/u', '*', $str); - if ($str != $replaced) { - $this->warning('PHP is linked to a version of the PCRE library ' . - 'that does not support Unicode properties. ' . - 'If you are running Red Hat Enterprise Linux / ' . - 'CentOS 5.4 or earlier, see our documentation page on fixing this.'); + if (version_compare(PHP_VERSION, '5.3.2', '<')) { + $this->warning('Require PHP version 5.3.2 or greater.'); $pass = false; } -- 2.39.5