Crisu83/yii-auth — pull request #49 by nineinchnick (2013-02-21 18:25:45+00:00)
Title: SingleDbAuthManager

Adjusted formatting and extra check when E_NOTICE is supressed.

To answer previous question regarding why E_NOTICE needs to be supressed:
The unserialize function issues this besides returning FALSE when it can't unserialize passed string. So while you still can do proper error handling, that E_NOTICE will get propagated upwards on the stack and get caught by Yii's error handling mechanisms and stop the whole page from displaying. So a single probably misspelled auth item can bring a whole site to a halt.

This really should be about fetch auth items from the DB, not about error handling. I've copied the way Yii handles error in it's core classes.