本文整理匯總了PHP中pocketmine\utils\MainLogger::join方法的典型用法代碼示例。如果您正苦於以下問題:PHP MainLogger::join方法的具體用法?PHP MainLogger::join怎麽用?PHP MainLogger::join使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類pocketmine\utils\MainLogger
的用法示例。
在下文中一共展示了MainLogger::join方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: exit
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 on the homepage, or recompile PHP again.");
$logger->shutdown();
$logger->join();
exit(1);
//Exit with error
}
if (\file_exists(\pocketmine\PATH . ".git/refs/heads/master")) {
//Found Git information!
\define("pocketmine\\GIT_COMMIT", \strtolower(\trim(\file_get_contents(\pocketmine\PATH . ".git/refs/heads/master"))));
} else {
//Unknown :(
\define("pocketmine\\GIT_COMMIT", \str_repeat("00", 20));
}
@\define("ENDIANNESS", \pack("d", 1) === "?ð" ? Binary::BIG_ENDIAN : Binary::LITTLE_ENDIAN);
@\define("INT32_MASK", \is_int(4294967295.0) ? 4294967295.0 : -1);
@\ini_set("opcache.mmap_base", \bin2hex(Utils::getRandomBytes(8, \false)));
//Fix OPCache address errors
if (!\file_exists(\pocketmine\DATA . "server.properties") and !isset($opts["no-wizard"])) {