Made Zlib required

This commit is contained in:
Shoghi Cervantes Pueyo 2013-01-26 13:21:58 +01:00
parent d1d720e9ef
commit ac0fab8f0b
3 changed files with 11 additions and 13 deletions

View file

@ -77,10 +77,8 @@ if(!extension_loaded("sqlite3") and @dl((PHP_SHLIB_SUFFIX === "dll" ? "php_":"")
}
if(!extension_loaded("zlib") and @dl((PHP_SHLIB_SUFFIX === "dll" ? "php_":"") . "zlib." . PHP_SHLIB_SUFFIX) === false){
console("[ERROR] Unable to find Zlib extension. Compressed worlds won't be loaded", true, true, 0);
define("ZLIB_EXTENSION", false);
}else{
define("ZLIB_EXTENSION", true);
console("[ERROR] Unable to find Zlib extension", true, true, 0);
++$errors;
}
if($errors > 0){