summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorwei <>2005-12-11 00:07:50 +0000
committerwei <>2005-12-11 00:07:50 +0000
commitba423d5eee055002345ee88b748d91f5f1d06c4e (patch)
tree9a8926c96b887b3ee1ae4d73a087b27bb179e8c6 /framework
parent5ecce1f03a230da31fddc91008e76978ef90fa78 (diff)
Throws "Fatal error: Exception thrown without a stack frame in Unknown on line 0"
Diffstat (limited to 'framework')
-rw-r--r--framework/TApplication.php2
-rw-r--r--framework/prado.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/framework/TApplication.php b/framework/TApplication.php
index 9051ea23..5506b38d 100644
--- a/framework/TApplication.php
+++ b/framework/TApplication.php
@@ -261,8 +261,6 @@ class TApplication extends TComponent
*/
protected function applyDefaultExceptionHandlers()
{
- set_error_handler(array('Prado','phpErrorHandler'),error_reporting());
- set_exception_handler(array('Prado','exceptionHandler'));
}
/**
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