From: Mikael Nordfeldth Date: Sat, 1 Mar 2014 15:19:00 +0000 (+0100) Subject: Updating version check to match requirements X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=13736bbb89702a992607ff7d31ee9e13984275b7;p=quix0rs-gnu-social.git Updating version check to match requirements Also removing a legacy check for, nowadays, unsupported versions. --- 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; }