diff options
author | Andrew Dolgov <[email protected]> | 2021-02-05 23:41:32 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2021-02-05 23:41:32 +0300 |
commit | 403dca154c6b539de221f9e16174a0fdd0a1e896 (patch) | |
tree | 8187096f0e04ecb60440c8551514d990d0e85b2d /include/sanity_check.php | |
parent | b4cbc792cc5fbbd5356f91038bf6cf5e67a19e42 (diff) |
initial WIP for php8; bump php version requirement to 7.0
Diffstat (limited to 'include/sanity_check.php')
-rwxr-xr-x | include/sanity_check.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/sanity_check.php b/include/sanity_check.php index e6c0e5d4b..fddc26295 100755 --- a/include/sanity_check.php +++ b/include/sanity_check.php @@ -70,8 +70,8 @@ array_push($errors, "Please don't run this script as root."); } - if (version_compare(PHP_VERSION, '5.6.0', '<')) { - array_push($errors, "PHP version 5.6.0 or newer required. You're using " . PHP_VERSION . "."); + if (version_compare(PHP_VERSION, '7.0.0', '<')) { + array_push($errors, "PHP version 7.0.0 or newer required. You're using " . PHP_VERSION . "."); } if (!class_exists("UConverter")) { @@ -125,14 +125,14 @@ if (SELF_URL_PATH == "http://example.org/tt-rss/") { $hint = $ref_self_url_path ? "(possible value: <b>$ref_self_url_path</b>)" : ""; array_push($errors, - "Please set SELF_URL_PATH to the correct value for your server $hint"); + "Please set SELF_URL_PATH to the correct value for your server: $hint"); } if ($ref_self_url_path && (!defined('_SKIP_SELF_URL_PATH_CHECKS') || !_SKIP_SELF_URL_PATH_CHECKS) && SELF_URL_PATH != $ref_self_url_path && SELF_URL_PATH != mb_substr($ref_self_url_path, 0, mb_strlen($ref_self_url_path)-1)) { array_push($errors, - "Please set SELF_URL_PATH to the correct value detected for your server: <b>$ref_self_url_path</b>"); + "Please set SELF_URL_PATH to the correct value detected for your server: <b>$ref_self_url_path</b> (you're using: <b>" . SELF_URL_PATH . "</b>)"); } if (!is_writable(ICONS_DIR)) { |