yiisoft/yii — Issue #454: endless loop with CDbCache on CDbException
Author: cebe
Created: 2012-03-05 21:16:21+00:00
State: open

not sure if this is an issue that should be handled by the framework and not very sure if I could do something on my config to fix it but what will happen is the following:

when you have `cache` component of application configured as a CDbCache and you come to the situation that database connection is not available, CDbConnection tries to throw an exception in [line 382](https://github.com/yiisoft/yii/blob/master/framework/db/CDbConnection.php#L382) whose text will be translated by CPhpMessageSource that has caching enabled per default and that cache is CDbCache as configured before. This cache then tries to connect to database and wants to throw that error again and the loop begins until memory limit is reached or xdebug tells you that max function nesting limit is reached.