]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Updating version check to match requirements
authorMikael Nordfeldth <mmn@hethane.se>
Sat, 1 Mar 2014 15:19:00 +0000 (16:19 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Sat, 1 Mar 2014 15:19:00 +0000 (16:19 +0100)
Also removing a legacy check for, nowadays, unsupported versions.

lib/installer.php

index 0b71e0bf23a42717eafa28e8fed4978815621075..b649dc3e2c51a6caca4f051d9fb62dc28bc262e0 100644 (file)
@@ -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 <a href="' .
-                           'http://status.net/wiki/Red_Hat_Enterprise_Linux#PCRE_library' .
-                           '">our documentation page</a> on fixing this.');
+        if (version_compare(PHP_VERSION, '5.3.2', '<')) {
+            $this->warning('Require PHP version 5.3.2 or greater.');
             $pass = false;
         }