yiisoft/yii — pull request #679 by pgaultier (2012-05-04 14:47:09+00:00)
Title: Feature/fix http exceptions

I found two small problems with CHttpExceptions :

1. the http code sent back to the browser is correct but not the text part (get_class($exception) was sent)
2. php was exposed in production mode when an error 500 was raised

This small fix
* handle the correct http codes and fallback to class name if needed,
* replace the "500 PHP Error" when not in debug mode with "500 Internal Server Error"