diff --git a/compile_php.sh b/compile_php.sh index e24b6bf80..46cdffcab 100644 --- a/compile_php.sh +++ b/compile_php.sh @@ -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" diff --git a/src/common/dependencies.php b/src/common/dependencies.php index 537bd863d..1273a6bed 100644 --- a/src/common/dependencies.php +++ b/src/common/dependencies.php @@ -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; }