Try setting memory limit

This commit is contained in:
Daniil Gentili 2020-09-27 23:06:57 +02:00
parent 05b6266669
commit 16040141ae

View File

@ -245,6 +245,10 @@ class Magic
//$this->logger->logger('Could not enable PHP logging');
}
}
try {
\ini_set('memory_limit', -1);
} catch (\danog\MadelineProto\Exception $e) {
}
// Check if we're in a console, for colorful log output
try {
self::$isatty = \defined(\STDOUT::class) && hasColorSupport();