pocketmine\utils\MainLogger::shutdown PHP Method

shutdown() public method

public shutdown ( )
    public function shutdown()
    {
        $this->shutdown = true;
    }

Usage Example

Ejemplo n.º 1
0
 }
 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