mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 00:33:59 +00:00
Updated versions
This commit is contained in:
parent
46f7279a26
commit
6095432a4f
@ -3,7 +3,7 @@ COMPILER_VERSION="0.6"
|
||||
PHP_VERSION="5.4.11"
|
||||
ZLIB_VERSION="1.2.7"
|
||||
GMP_VERSION="5.1.0"
|
||||
PTHREADS_VERSION="2ef11a4341d12c697d508138863f3c79b3729189"
|
||||
PTHREADS_VERSION="e4700122a89bf759a9c3a024bda0c7d025bcb93d"
|
||||
CURL_VERSION="curl-7_28_1"
|
||||
|
||||
echo "[PocketMine] PHP installer and compiler for Linux - by @shoghicp v$COMPILER_VERSION"
|
||||
|
@ -36,23 +36,17 @@ set_error_handler("fatal_handler", E_ERROR | E_PARSE | E_CORE_ERROR | E_COMPILE_
|
||||
|
||||
$errors = 0;
|
||||
|
||||
if(version_compare("5.3.3", PHP_VERSION) > 0){
|
||||
console("[ERROR] Use PHP >= 5.3.3", true, true, 0);
|
||||
++$errors;
|
||||
}elseif(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("5.4.0", PHP_VERSION) > 0){
|
||||
console("[ERROR] Use PHP >= 5.4.0", true, true, 0);
|
||||
++$errors;
|
||||
}
|
||||
|
||||
if(version_compare("5.4.0", PHP_VERSION) > 0){
|
||||
console("[NOTICE] Use PHP >= 5.4.0 to increase performance", true, true, 0);
|
||||
define("HEX2BIN", false);
|
||||
}else{
|
||||
define("HEX2BIN", true);
|
||||
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(php_sapi_name() !== "cli"){
|
||||
console("[ERROR] Use PHP-CLI to execute the library or create your own", true, true, 0);
|
||||
console("[ERROR] Use PHP-CLI to execute the server or create your own", true, true, 0);
|
||||
++$errors;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user