From d8d14cd6b09a158c5010356bf14aee76f60a900b Mon Sep 17 00:00:00 2001 From: xue <> Date: Sun, 11 Dec 2005 01:08:27 +0000 Subject: Fixed a syntax error in PradoBase class, which would cause a recursive raising of exceptions. --- framework/prado.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'framework/prado.php') diff --git a/framework/prado.php b/framework/prado.php index 9a83518c..ed6a4f49 100644 --- a/framework/prado.php +++ b/framework/prado.php @@ -44,11 +44,13 @@ if(!function_exists('__autoload')) } } -//Error handlers are set during TApplication::run(), -//Exception stack is empty if set error handlers requires TApplication -//and TApplication then causes an exception during instantiation. -//see TApplication::initDefaultExceptionHandlers() +/** + * Sets error handler to be Prado::phpErrorHandler + */ set_error_handler(array('Prado','phpErrorHandler'),error_reporting()); +/** + * Sets exception handler to be Prado::exceptionHandler + */ set_exception_handler(array('Prado','exceptionHandler')); /** -- cgit v1.2.3