]> git.wh0rd.org - tt-rss.git/commitdiff
Check for PHP 5.6 minimum everywhere.
authorwn_ <invalid@email.com>
Mon, 13 Aug 2018 13:41:47 +0000 (08:41 -0500)
committerwn_ <invalid@email.com>
Mon, 13 Aug 2018 13:41:47 +0000 (08:41 -0500)
index.php
install/index.php

index cba52284b484204f481ce062ffab92b22422f106..f9e26204e11ce5bce5c60313f05c37cc8c0acff4 100644 (file)
--- a/index.php
+++ b/index.php
@@ -11,8 +11,8 @@
 
        // we need a separate check here because functions.php might get parsed
        // incorrectly before 5.3 because of :: syntax.
-       if (version_compare(PHP_VERSION, '5.3.0', '<')) {
-               print "<b>Fatal Error</b>: PHP version 5.3.0 or newer required.\n";
+       if (version_compare(PHP_VERSION, '5.6.0', '<')) {
+               print "<b>Fatal Error</b>: PHP version 5.6.0 or newer required.\n";
                exit;
        }
 
index 350c2f2d03e07bea2b52a419774a9fef6a972d81..e20cd48ca3e3ea630e7582b60ac83c1e20c81ed5 100755 (executable)
@@ -38,8 +38,8 @@
        function sanity_check($db_type) {
                $errors = array();
 
-               if (version_compare(PHP_VERSION, '5.4.0', '<')) {
-                       array_push($errors, "PHP version 5.4.0 or newer required.");
+               if (version_compare(PHP_VERSION, '5.6.0', '<')) {
+                       array_push($errors, "PHP version 5.6.0 or newer required.");
                }
 
                if (!function_exists("curl_init") && !ini_get("allow_url_fopen")) {