From 998a5f5785c49d42434b72e4f6bbcf16472033ef Mon Sep 17 00:00:00 2001 From: Olav Morken <olav.morken@uninett.no> Date: Fri, 7 Aug 2009 14:02:23 +0000 Subject: [PATCH] Reenable exception and error handler. git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1643 44740490-163a-0410-bde0-09ae8108e29a --- www/_include.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/www/_include.php b/www/_include.php index fe7f58f12..3905c218d 100644 --- a/www/_include.php +++ b/www/_include.php @@ -27,9 +27,7 @@ function SimpleSAML_exception_handler(Exception $exception) { $e = new SimpleSAML_Error_Error('UNHANDLEDEXCEPTION', $exception); $e->show(); } -/* Disabled; see issue #176. - * set_exception_handler('SimpleSAML_exception_handler'); - */ +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) { @@ -48,9 +46,7 @@ function SimpleSAML_error_handler($errno, $errstr, $errfile = NULL, $errline = 0 /* Resume normal error processing. */ return FALSE; } -/* Disabled; see issue #176. - * set_error_handler('SimpleSAML_error_handler'); - */ +set_error_handler('SimpleSAML_error_handler'); $path_extra = dirname(dirname(__FILE__)) . '/lib'; -- GitLab