From cd01d63e49c86ad1c91aed0e6b653d9b149f3c66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?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=UTF-8 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 f08f4da52a7ab..4d76ef95bd266 100644 --- a/lib/private/Session/Internal.php +++ b/lib/private/Session/Internal.php @@ -182,7 +182,9 @@ public function reopen() { * @throws \ErrorException */ public function trapError(int $errorNumber, string $errorString) { - throw new \ErrorException($errorString); + if ($errorNumber & E_ERROR) { + throw new \ErrorException($errorString); + } } /**