summaryrefslogtreecommitdiff
path: root/framework/prado.php
diff options
context:
space:
mode:
Diffstat (limited to 'framework/prado.php')
-rw-r--r--framework/prado.php2
1 files changed, 2 insertions, 0 deletions
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