Updated to extension 0.0.2

This commit is contained in:
Shoghi Cervantes
2014-04-09 00:56:36 +02:00
parent 71737c3e53
commit db15ae49a1
4 changed files with 50 additions and 36 deletions

View File

@ -328,9 +328,14 @@ namespace pocketmine {
//console("[NOTICE] Couldn't find the uopz extension. Some functions may be limited", true, true, 0);
}
if(extension_loaded("pocketmine") and version_compare(phpversion("pocketmine"), "0.0.1") < 0){
console("[ERROR] You have the native PocketMine extension, but your version is lower than 0.0.1.", true, true, 0);
++$errors;
if(extension_loaded("pocketmine")){
if(version_compare(phpversion("pocketmine"), "0.0.1") < 0){
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.2") > 0){
console("[ERROR] You have the native PocketMine extension, but your version is lower than 0.0.2.", true, true, 0);
++$errors;
}
}
if(!extension_loaded("curl")){