From f48f663793c02e9b28c1f508a92fd78da3898faf Mon Sep 17 00:00:00 2001 From: Thijs Kinkhorst <thijs@kinkhorst.com> Date: Fri, 31 Jul 2015 09:19:35 +0000 Subject: [PATCH] Remove INCPREFIX deprecation warning. INCPREFIX has been added in March 2008 and was already deprecated in June 2008, i.e. > 7 years ago. --- www/_include.php | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/www/_include.php b/www/_include.php index 37f0c883f..8170a99da 100644 --- a/www/_include.php +++ b/www/_include.php @@ -75,28 +75,6 @@ function SimpleSAML_error_handler($errno, $errstr, $errfile = NULL, $errline = 0 } set_error_handler('SimpleSAML_error_handler'); -/** - * Class which should print a warning every time a reference to $SIMPLESAML_INCPREFIX is made. - */ -class SimpleSAML_IncPrefixWarn { - - /** - * Print a warning, as a call to this function means that $SIMPLESAML_INCPREFIX is referenced. - * - * @return A blank string. - */ - function __toString() { - $backtrace = debug_backtrace(); - $where = $backtrace[0]['file'] . ':' . $backtrace[0]['line']; - error_log('Deprecated $SIMPLESAML_INCPREFIX still in use at ' . $where . - '. The simpleSAMLphp library now uses an autoloader.'); - return ''; - } -} -/* Set the $SIMPLESAML_INCPREFIX to a reference to the class. */ -$SIMPLESAML_INCPREFIX = new SimpleSAML_IncPrefixWarn(); - - $configdir = dirname(dirname(__FILE__)) . '/config'; if (!file_exists($configdir . '/config.php')) { header('Content-Type: text/plain'); -- GitLab