bootstrap: check for zlib raw support in leveldb

This commit is contained in:
Dylan K. Taylor 2021-10-29 19:15:12 +01:00
parent 8a2ecfe1d4
commit 1c18c731ef
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -126,6 +126,9 @@ namespace pocketmine {
if(version_compare($leveldb_version, "0.2.1") < 0){
$messages[] = "php-leveldb >= 0.2.1 is required, while you have $leveldb_version.";
}
if(!defined('LEVELDB_ZLIB_RAW_COMPRESSION')){
$messages[] = "Given version of php-leveldb doesn't support ZLIB_RAW compression (use https://github.com/pmmp/php-leveldb)";
}
}
$chunkutils2_version = phpversion("chunkutils2");