mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-03 08:39:53 +00:00
Require php-leveldb version 0.2.0 or greater
This commit is contained in:
parent
70bd9afd37
commit
2a67507997
@ -432,6 +432,14 @@ namespace pocketmine {
|
|||||||
++$errors;
|
++$errors;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(extension_loaded("leveldb")){
|
||||||
|
$leveldb_version = phpversion("leveldb");
|
||||||
|
if(version_compare($leveldb_version, "0.2.0") < 0){
|
||||||
|
$logger->critical("php-leveldb >= 0.2.0 is required, while you have $leveldb_version");
|
||||||
|
++$errors;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if(extension_loaded("pocketmine")){
|
if(extension_loaded("pocketmine")){
|
||||||
if(version_compare(phpversion("pocketmine"), "0.0.1") < 0){
|
if(version_compare(phpversion("pocketmine"), "0.0.1") < 0){
|
||||||
$logger->critical("You have the native PocketMine extension, but your version is lower than 0.0.1.");
|
$logger->critical("You have the native PocketMine extension, but your version is lower than 0.0.1.");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user