本文整理汇总了PHP中pocketmine\utils\MainLogger::shutdown方法的典型用法代码示例。如果您正苦于以下问题:PHP MainLogger::shutdown方法的具体用法?PHP MainLogger::shutdown怎么用?PHP MainLogger::shutdown使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类pocketmine\utils\MainLogger
的用法示例。
在下文中一共展示了MainLogger::shutdown方法的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