Revision: 2028 Author: olavmrk Date: Fri Dec 4 00:07:03 2009 Log: Enable assertion handler for all pages.
Enable the assertion handler for all pages which load www/_include.php. This may lead to more logging of assertion failures, but should otherwise be invisible. http://code.google.com/p/simplesamlphp/source/detail?r=2028 Modified: /trunk/www/_include.php /trunk/www/module.php ======================================= --- /trunk/www/_include.php Fri Oct 16 04:04:08 2009 +++ /trunk/www/_include.php Fri Dec 4 00:07:03 2009 @@ -22,6 +22,9 @@ /* Initialize the autoloader. */ require_once(dirname(dirname(__FILE__)) . '/lib/_autoload.php'); +/* Enable assertion handler for all pages. */ +SimpleSAML_Error_Assertion::installHandler(); + /* Show error page on unhandled exceptions. */ function SimpleSAML_exception_handler(Exception $exception) { $e = new SimpleSAML_Error_Error('UNHANDLEDEXCEPTION', $exception); ======================================= --- /trunk/www/module.php Fri Oct 16 04:04:24 2009 +++ /trunk/www/module.php Fri Dec 4 00:07:03 2009 @@ -12,8 +12,6 @@ require_once('_include.php'); -SimpleSAML_Error_Assertion::installHandler(); - /* Index pages - filenames to attempt when accessing directories. */ $indexFiles = array('index.php', 'index.html', 'index.htm', 'index.txt'); -- You received this message because you are subscribed to the Google Groups "simpleSAMLphp commits" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/simplesamlphp-commits?hl=en.
