Module: nagvis Branch: master Commit: 4d1efd5133930ac3c02faff74a65ab8aba7ef1f6 URL: http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis;a=commit;h=4d1efd5133930ac3c02faff74a65ab8aba7ef1f6
Author: LaMi <[email protected]> Date: Tue Mar 9 22:19:51 2010 +0100 ajaxError php error handler can also handle PHP exceptions now --- share/server/core/functions/ajaxErrorHandler.php | 13 +++++++++---- 1 files changed, 9 insertions(+), 4 deletions(-) diff --git a/share/server/core/functions/ajaxErrorHandler.php b/share/server/core/functions/ajaxErrorHandler.php index b7e95ec..97fbc46 100644 --- a/share/server/core/functions/ajaxErrorHandler.php +++ b/share/server/core/functions/ajaxErrorHandler.php @@ -29,10 +29,15 @@ * * @author Lars Michelsen <[email protected]> */ -function ajaxError($errno, $errstr, $file, $line) { - // Don't handle E_STRICT errors - if($errno != 2048) { - echo "Error: (".$errno.") ".$errstr. " (".$file.":".$line.")"; +function ajaxError($errno, $errstr = '', $file = '', $line = '') { + if(is_int($errno)) { + // Don't handle E_STRICT errors + if($errno != 2048) { + echo "Error: (".$errno.") ".$errstr. " (".$file.":".$line.")"; + die(); + } + } else { + echo $errno; die(); } } ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Nagvis-checkins mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nagvis-checkins
