if (!extension_loaded("sqlite3")) { $logger->critical("Unable to find the SQLite3 extension."); ++$errors; } if (!extension_loaded("yaml")) { $logger->critical("Unable to find the YAML extension."); ++$errors; } if (!extension_loaded("zlib")) { $logger->critical("Unable to find the Zlib extension."); ++$errors; } if ($errors > 0) { $logger->critical("Please use the installer provided at BukkitPE.net, or recompile PHP again."); $logger->shutdown(); $logger->join(); exit(1); //Exit with error } if (file_exists(\BukkitPE\PATH . ".git/refs/heads/master")) { //Found Git information! define("BukkitPE\\GIT_COMMIT", strtolower(trim(file_get_contents(\BukkitPE\PATH . ".git/refs/heads/master")))); } else { //Unknown :( define("BukkitPE\\GIT_COMMIT", str_repeat("00", 20)); } @define("ENDIANNESS", pack("d", 1) === "?ð" ? Binary::BIG_ENDIAN : Binary::LITTLE_ENDIAN); @define("INT32_MASK", is_int(0xffffffff) ? 0xffffffff : -1); @ini_set("opcache.mmap_base", bin2hex(Utils::getRandomBytes(8, false))); //Fix OPCache address errors if (!file_exists(\BukkitPE\DATA . "server.properties") and !isset($opts["no-wizard"])) {