From c1ea6a899c649b1ef4eb3de10f898e912448cc06 Mon Sep 17 00:00:00 2001 From: Julius Härtl Date: Tue, 17 Aug 2021 10:47:25 +0200 Subject: 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(-) (limited to 'lib') diff --git a/lib/private/Session/Internal.php b/lib/private/Session/Internal.php index f02f1c2541c..285b6fd7960 100644 --- a/lib/private/Session/Internal.php +++ b/lib/private/Session/Internal.php @@ -181,7 +181,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); + } } /** -- cgit v1.2.3