Added deprecation warning for 32-bit

This commit is contained in:
Dylan K. Taylor 2017-03-08 19:59:16 +00:00
parent 9311b4f248
commit a19996a7cf

View File

@ -453,6 +453,10 @@ namespace pocketmine {
exit(1); //Exit with error
}
if(PHP_INT_SIZE < 8){
$logger->warning("Running PocketMine-MP with 32-bit systems/PHP is deprecated. Support for 32-bit may be dropped in the future.");
}
$gitHash = str_repeat("00", 20);
if(file_exists(\pocketmine\PATH . ".git/HEAD")){ //Found Git information!
$ref = trim(file_get_contents(\pocketmine\PATH . ".git/HEAD"));