new error handler - needs some more work, but works already:

- errors are gathered through all pages till displayed
 - errors are displayed in main footer
 - configurable error gathering
 - configurable error displaying
 - configurable error logging
This commit is contained in:
Sebastian Mendel
2007-10-08 14:58:18 +00:00
parent bed8a4cc50
commit e623dc42cf
5 changed files with 952 additions and 0 deletions

View File

@@ -29,6 +29,10 @@
* @version $Id$
*/
require_once './libraries/Error_Handler.class.php';
$GLOBALS['error_handler'] = new PMA_Error_Handler();
// at this point PMA_PHP_INT_VERSION is not yet defined
if (version_compare(phpversion(), '6', 'lt')) {
/**
@@ -140,6 +144,7 @@ $variables_whitelist = array (
'_ENV',
'_COOKIE',
'_SESSION',
'error_handler',
);
foreach (get_defined_vars() as $key => $value) {