backport 5c1f1f00cbbcc6460927b922f993f1de8e1e046c: move assert.exception to PocketMine.php with the other stuff

This commit is contained in:
Dylan K. Taylor 2019-08-25 18:18:14 +01:00
parent cc79dfa64c
commit c063a4da29
2 changed files with 1 additions and 2 deletions

View File

@ -142,6 +142,7 @@ namespace pocketmine {
ini_set("display_startup_errors", '1');
ini_set("default_charset", "utf-8");
@ini_set("opcache.mmap_base", bin2hex(random_bytes(8))); //Fix OPCache address errors
ini_set('assert.exception', '1');
}
function server(){

View File

@ -1565,8 +1565,6 @@ class Server{
return;
}
ini_set('assert.exception', '1');
if($this->logger instanceof MainLogger){
$this->logger->setLogDebug(\pocketmine\DEBUG > 1);
}