mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 03:59:43 +00:00
Added PHP version check
This commit is contained in:
parent
8513a34358
commit
bb68f8f305
2 changed files with 6 additions and 3 deletions
|
|
@ -41,8 +41,10 @@ if(version_compare("5.4.0", PHP_VERSION) > 0){
|
|||
++$errors;
|
||||
}
|
||||
|
||||
if(version_compare("5.5.0", PHP_VERSION) <= 0){
|
||||
console("[NOTICE] PocketMine-MP hasn't been tested with PHP >= 5.5", true, true, 0);
|
||||
if(version_compare(CURRENT_PHP_VERSION, PHP_VERSION) > 0){
|
||||
console("[NOTICE] PocketMine-MP hasn't been tested with PHP < ".CURRENT_PHP_VERSION, true, true, 0);
|
||||
}elseif(version_compare(CURRENT_PHP_VERSION, PHP_VERSION) < 0){
|
||||
console("[NOTICE] PocketMine-MP hasn't been tested with PHP > ".CURRENT_PHP_VERSION, true, true, 0);
|
||||
}
|
||||
|
||||
if(php_sapi_name() !== "cli"){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue