Commit Graph

7 Commits

Author SHA1 Message Date
Qiang Xue
80dbaaca8b bug fixes. 2013-03-25 19:37:42 -04:00
Qiang Xue
1d48d01ef7 refactored View. 2013-03-20 22:03:13 -04:00
Alexander Makarov
2d5db95149 More on error handling:
- Correct exit code for require errors in CLI mode. It was 0 even in case of error.
- Solved handling fatals and displaying custom error template w/o output buffering.
- If XDEBUG is available, error screen will display trace (implementation inspired by Kohana and Nette).
- Added ErrorException to store/display type of the error and user-friendly messages.
- Fatals are still logged in PHP log.
- Turned off native display_errors since we're now catching all errors.
- Added reserving memory (256kb) . Can be removed safely. In case of removal we're losing only memory exhausted error when allocating last very small chunk of memory.
- Properly handled errors in __toString (exception can't be thrown in this case).
- In the YII_DEBUG===false mode it's bad to display exception name even in page title.
- In the YII_DEBUG===true mode it's still useful to get user-friendly message additionally to exception name.
2013-02-13 03:51:29 +04:00
Alexander Makarov
811880031c fixed YII_DEBUG exception view 2013-02-07 16:13:57 +04:00
Alexander Makarov
ba4d9fc2b4 changed ->owner to ->context in error view 2012-06-10 12:00:03 +04:00
Alexander Makarov
6caad53ade Removed unnecessary markup from error views 2012-04-25 14:52:53 +04:00
Qiang Xue
7c06cc03d7 finished error handler. 2012-04-21 16:33:54 -04:00