From e1418d2cd6ce8dd5435c6edea498d55f56f23dcf Mon Sep 17 00:00:00 2001 From: Mior Muhammad Zaki Date: Sun, 1 Mar 2020 11:20:46 +0800 Subject: [PATCH] Prepare 4.3.0 release. Signed-off-by: Mior Muhammad Zaki --- Concerns/DisableBuffering.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/Concerns/DisableBuffering.php b/Concerns/DisableBuffering.php index 9f778e6..7f4ddb2 100644 --- a/Concerns/DisableBuffering.php +++ b/Concerns/DisableBuffering.php @@ -2,8 +2,6 @@ namespace Orchestra\Http\Concerns; -use Throwable; - trait DisableBuffering { /** @@ -22,11 +20,9 @@ protected function disableOutputBuffering(): void } // Turn off PHP output compression - try { + \rescue(static function () { \ini_set('zlib.output_compression', false); - } catch (Throwable $e) { - // - } + }, null, false); // Implicitly flush the buffer(s) \ini_set('implicit_flush', true);