mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
PHP-Version
* return type declarations require php v7.0 or newer * updated README and and version check accordingly
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user