diff options
author | matthieu_ <matthieu_@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2007-08-25 00:27:48 +0400 |
---|---|---|
committer | matthieu_ <matthieu_@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2007-08-25 00:27:48 +0400 |
commit | c12bdaa5e95b2f6dba577b3b2c614279f68dc24a (patch) | |
tree | bc955fc3dbc61d4cf2bf0612c770d31c3e6a8666 /modules/ErrorHandler.php | |
parent | 8f7f5857cbe329e88b8104c98be3035f79f7fde4 (diff) |
- Translation
- filter to name the columns
- API for the modules actions, provider, UserCountry, Visitfrquency, visitinterest, time,
- HALF of the api for referers
- improved XML export nwo using PEAR xml serializer
Diffstat (limited to 'modules/ErrorHandler.php')
-rwxr-xr-x | modules/ErrorHandler.php | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/modules/ErrorHandler.php b/modules/ErrorHandler.php index cb746380e6..7ae1fc9d9d 100755 --- a/modules/ErrorHandler.php +++ b/modules/ErrorHandler.php @@ -6,5 +6,29 @@ function Piwik_ErrorHandler($errno, $errstr, $errfile, $errline) $backtrace = ob_get_contents(); ob_end_clean(); Zend_Registry::get('logger_error')->log($errno, $errstr, $errfile, $errline, $backtrace); + + switch($errno) + { + case E_ERROR: + case E_PARSE: + case E_CORE_ERROR: + case E_CORE_WARNING: + case E_COMPILE_ERROR: + case E_COMPILE_WARNING: + case E_USER_ERROR: + case E_EXCEPTION: + exit; + break; + + case E_WARNING: + case E_NOTICE: + case E_USER_WARNING: + case E_USER_NOTICE: + case E_STRICT: + case E_RECOVERABLE_ERROR: + default: + // do not exit + break; + } } ?> |