PHP-Version

* return type declarations require php v7.0 or newer
 * updated README and and version check accordingly
This commit is contained in:
Sarjuuk
2018-11-20 18:59:29 +01:00
parent 470498f63c
commit 04209cfc6d
2 changed files with 3 additions and 3 deletions

View File

@@ -18,7 +18,7 @@ Also, this project is not meant to be used for commercial puposes of any kind!
## Requirements ## Requirements
+ Webserver running PHP ≥ 5.5.0 including extensions: + Webserver running PHP ≥ 7.0.1 including extensions:
+ SimpleXML + SimpleXML
+ GD + GD
+ Mysqli + Mysqli

View File

@@ -10,8 +10,8 @@ foreach ($reqExt as $r)
if (!extension_loaded($r)) if (!extension_loaded($r))
$error .= 'Required Extension <b>'.$r."</b> was not found. Please check if it should exist, using \"<i>php -m</i>\"\n\n"; $error .= 'Required Extension <b>'.$r."</b> was not found. Please check if it should exist, using \"<i>php -m</i>\"\n\n";
if (version_compare(PHP_VERSION, '5.5.0') < 0) if (version_compare(PHP_VERSION, '7.0.1') < 0)
$error .= 'PHP Version <b>5.5.0</b> or higher required! Your version is <b>'.PHP_VERSION."</b>.\nCore functions are unavailable!\n"; $error .= 'PHP Version <b>7.0.1</b> or higher required! Your version is <b>'.PHP_VERSION."</b>.\nCore functions are unavailable!\n";
if ($error) if ($error)
{ {