Fix error dump not dumped on memory problems

This commit is contained in:
kotyaralih 2021-12-05 10:43:43 -08:00
parent 3df7d91c8a
commit 149d88f628

View file

@ -388,6 +388,7 @@ class PocketMinecraftServer{
if($this->stop === true){
return;
}
ini_set("memory_limit", "-1"); //Fix error dump not dumped on memory problems
console("[SEVERE] An unrecovereable has ocurred and the server has crashed. Creating an error dump");
$dump = "```\r\n# PocketMine-MP Error Dump ".date("D M j H:i:s T Y")."\r\n";
$er = error_get_last();