From 16040141aedb080c1239d5f5335dc22a9a36f173 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Sun, 27 Sep 2020 23:06:57 +0200 Subject: [PATCH] Try setting memory limit --- src/danog/MadelineProto/Magic.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/danog/MadelineProto/Magic.php b/src/danog/MadelineProto/Magic.php index f28940f4..c672d456 100644 --- a/src/danog/MadelineProto/Magic.php +++ b/src/danog/MadelineProto/Magic.php @@ -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();