PHP-Version
* return type declarations require php v7.0 or newer * updated README and and version check accordingly
This commit is contained in:
parent
470498f63c
commit
04209cfc6d
2 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -10,8 +10,8 @@ foreach ($reqExt as $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";
|
||||
|
||||
if (version_compare(PHP_VERSION, '5.5.0') < 0)
|
||||
$error .= 'PHP Version <b>5.5.0</b> or higher required! Your version is <b>'.PHP_VERSION."</b>.\nCore functions are unavailable!\n";
|
||||
if (version_compare(PHP_VERSION, '7.0.1') < 0)
|
||||
$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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue