diff --git a/src/common/config.php b/src/common/config.php index 73de41961..3a07ed050 100644 --- a/src/common/config.php +++ b/src/common/config.php @@ -41,4 +41,5 @@ define("TEST_MD5", "d0ca3786e53b615bb4fb9f5094d5c9a7"); define("MAJOR_VERSION", "Alpha_1.2dev"); define("CURRENT_STRUCTURE", 5); define("CURRENT_PROTOCOL", 9); -define("CURRENT_MINECRAFT_VERSION", "v0.6.1 alpha"); \ No newline at end of file +define("CURRENT_MINECRAFT_VERSION", "v0.6.1 alpha"); +define("CURRENT_PHP_VERSION", "5.4.11"); \ No newline at end of file diff --git a/src/common/dependencies.php b/src/common/dependencies.php index 1273a6bed..cd60ba0fd 100644 --- a/src/common/dependencies.php +++ b/src/common/dependencies.php @@ -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"){