mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-09 03:06:55 +00:00
Added WeakRef as default extension
This commit is contained in:
@ -333,11 +333,16 @@ namespace pocketmine {
|
||||
console("[ERROR] You have the native PocketMine extension, but your version is lower than 0.0.1.", true, true, 0);
|
||||
++$errors;
|
||||
}elseif(version_compare(phpversion("pocketmine"), "0.0.4") > 0){
|
||||
console("[ERROR] You have the native PocketMine extension, but your version is lower than 0.0.4.", true, true, 0);
|
||||
console("[ERROR] You have the native PocketMine extension, but your version is higher than 0.0.4.", true, true, 0);
|
||||
++$errors;
|
||||
}
|
||||
}
|
||||
|
||||
if(!extension_loaded("Weakref") and !extension_loaded("weakref")){
|
||||
console("[ERROR] Unable to find the Weakref extension.", true, true, 0);
|
||||
++$errors;
|
||||
}
|
||||
|
||||
if(!extension_loaded("curl")){
|
||||
console("[ERROR] Unable to find the cURL extension.", true, true, 0);
|
||||
++$errors;
|
||||
|
Reference in New Issue
Block a user