Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormatthieu_ <matthieu_@59fd770c-687e-43c8-a1e3-f5a4ff64c105>2007-08-25 00:27:48 +0400
committermatthieu_ <matthieu_@59fd770c-687e-43c8-a1e3-f5a4ff64c105>2007-08-25 00:27:48 +0400
commitc12bdaa5e95b2f6dba577b3b2c614279f68dc24a (patch)
treebc955fc3dbc61d4cf2bf0612c770d31c3e6a8666 /modules/ErrorHandler.php
parent8f7f5857cbe329e88b8104c98be3035f79f7fde4 (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-xmodules/ErrorHandler.php24
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;
+ }
}
?>