]> git.wh0rd.org - tt-rss.git/commitdiff
sanity_check: enforce minimum php version (5.4)
authorAndrew Dolgov <noreply@fakecake.org>
Fri, 4 Dec 2015 16:03:57 +0000 (19:03 +0300)
committerAndrew Dolgov <noreply@fakecake.org>
Fri, 4 Dec 2015 16:03:57 +0000 (19:03 +0300)
include/sanity_check.php
install/index.php

index be314f4e2497754e4b7634a741536f65852ba8bb..7ca7519c6316e2d1da6a48899ab7dedcd448b6e9 100755 (executable)
@@ -43,8 +43,8 @@
                                array_push($errors, "Please don't run this script as root.");
                        }
 
-                       if (version_compare(PHP_VERSION, '5.3.0', '<')) {
-                               array_push($errors, "PHP version 5.3.0 or newer required.");
+                       if (version_compare(PHP_VERSION, '5.4.0', '<')) {
+                               array_push($errors, "PHP version 5.4.0 or newer required.");
                        }
 
                        if (CONFIG_VERSION != EXPECTED_CONFIG_VERSION) {
index 74ea65652549a97771639df869485b6b10a4e4fe..bfbb7e23491e72dad4e92e5508214d96bae5bf28 100755 (executable)
@@ -39,8 +39,8 @@
        function sanity_check($db_type) {
                $errors = array();
 
-               if (version_compare(PHP_VERSION, '5.3.0', '<')) {
-                       array_push($errors, "PHP version 5.3.0 or newer required.");
+               if (version_compare(PHP_VERSION, '5.4.0', '<')) {
+                       array_push($errors, "PHP version 5.4.0 or newer required.");
                }
 
                if (!function_exists("curl_init") && !ini_get("allow_url_fopen")) {