From 69c7e7f1aa0781faadde9d0c178b1aac236b9dff Mon Sep 17 00:00:00 2001 From: =?utf8?q?Julius=20H=C3=A4rtl?= Date: Tue, 17 Aug 2021 10:47:25 +0200 Subject: [PATCH] Only trap E_ERROR in session handling MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- lib/private/Session/Internal.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/private/Session/Internal.php b/lib/private/Session/Internal.php index b7e1c7b7bf8..632394c135e 100644 --- a/lib/private/Session/Internal.php +++ b/lib/private/Session/Internal.php @@ -182,7 +182,9 @@ class Internal extends Session { * @throws \ErrorException */ public function trapError(int $errorNumber, string $errorString) { - throw new \ErrorException($errorString); + if ($errorNumber & E_ERROR) { + throw new \ErrorException($errorString); + } } /** -- 2.39.5