Added WeakRef as default extension

This commit is contained in:
Shoghi Cervantes
2014-05-19 17:33:04 +02:00
parent 3729c5b603
commit c15f05622e
3 changed files with 139 additions and 7 deletions

View File

@ -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;