From dc515484ba7e1245dbca383b2f525dd05d35f5b9 Mon Sep 17 00:00:00 2001
From: Tim van Dijen <tvdijen@gmail.com>
Date: Fri, 19 Oct 2018 10:14:24 +0200
Subject: [PATCH] Remove legacy PHP 5.3 code

---
 www/_include.php | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/www/_include.php b/www/_include.php
index 74eb6b219..9daa9a398 100644
--- a/www/_include.php
+++ b/www/_include.php
@@ -31,15 +31,6 @@ set_exception_handler('SimpleSAML_exception_handler');
 // log full backtrace on errors and warnings
 function SimpleSAML_error_handler($errno, $errstr, $errfile = null, $errline = 0, $errcontext = null)
 {
-    if (!class_exists('\SimpleSAML\Logger')) {
-        /* We are probably logging a deprecation-warning during parsing. Unfortunately, the autoloader is disabled at
-         * this point, so we should stop here.
-         *
-         * See PHP bug: https://bugs.php.net/bug.php?id=47987
-         */
-        return false;
-    }
-
     if (\SimpleSAML\Logger::isErrorMasked($errno)) {
         // masked error
         return false;
-- 
GitLab