From 04209cfc6d8908568604c8d4ff2608c9aec85586 Mon Sep 17 00:00:00 2001 From: Sarjuuk Date: Tue, 20 Nov 2018 18:59:29 +0100 Subject: [PATCH] PHP-Version * return type declarations require php v7.0 or newer * updated README and and version check accordingly --- README.md | 2 +- includes/shared.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 922b8269..a6b1cf8f 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ Also, this project is not meant to be used for commercial puposes of any kind! ## Requirements -+ Webserver running PHP ≥ 5.5.0 including extensions: ++ Webserver running PHP ≥ 7.0.1 including extensions: + SimpleXML + GD + Mysqli diff --git a/includes/shared.php b/includes/shared.php index 41f768d6..41658e5a 100644 --- a/includes/shared.php +++ b/includes/shared.php @@ -10,8 +10,8 @@ foreach ($reqExt as $r) if (!extension_loaded($r)) $error .= 'Required Extension '.$r." was not found. Please check if it should exist, using \"php -m\"\n\n"; -if (version_compare(PHP_VERSION, '5.5.0') < 0) - $error .= 'PHP Version 5.5.0 or higher required! Your version is '.PHP_VERSION.".\nCore functions are unavailable!\n"; +if (version_compare(PHP_VERSION, '7.0.1') < 0) + $error .= 'PHP Version 7.0.1 or higher required! Your version is '.PHP_VERSION.".\nCore functions are unavailable!\n"; if ($error) {