Capplication Handleerror() Ends App
Rate Topic:

I don't see why the handleError() method of CApplication has to always terminate the application. For example, when uploading a file and the move_uploaded_file function fails, it is not good to just blow up with a "WARNING, failed to move etc.". I have registered an error event and I want this handled gracefully in my controller, showing form validation results normally.

So I request that handleError() provide a mechanism of not always terminating the app. Probably an attribute in CApplication of some sort of a callback filtering the error. For example, my 'terminateOrNot' callback could whitelist move_uploaded_file based on stack trace.

Just for reference, I have hacked yii (horribly) to enable event handling for this function. This is my main index.php.