From ba423d5eee055002345ee88b748d91f5f1d06c4e Mon Sep 17 00:00:00 2001 From: wei <> Date: Sun, 11 Dec 2005 00:07:50 +0000 Subject: Throws "Fatal error: Exception thrown without a stack frame in Unknown on line 0" --- framework/prado.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'framework/prado.php') diff --git a/framework/prado.php b/framework/prado.php index a76f4d16..9a83518c 100644 --- a/framework/prado.php +++ b/framework/prado.php @@ -48,6 +48,8 @@ if(!function_exists('__autoload')) //Exception stack is empty if set error handlers requires TApplication //and TApplication then causes an exception during instantiation. //see TApplication::initDefaultExceptionHandlers() +set_error_handler(array('Prado','phpErrorHandler'),error_reporting()); +set_exception_handler(array('Prado','exceptionHandler')); /** * Includes TApplication class file -- cgit v1.2.3