malyshev/yii-debug-toolbar — Issue #30: Errors with APC opcode cache enabled
Author: cheuschober
Created: 2011-11-09 20:59:20+00:00
State: open

Hi. I think this project is amazing. I did, however, encounter a bug that I spent a rather long time trying to troubleshoot:

With APC enabled, the yii-debug-toolbar gets its opcode cached which causes errors in any execution after the first. Since Yii has its unique autoloading mechanism we can't selectively set the debug toolbar's directory (via .htaccess):

php_flag apc.cache_by_default 0

If the entire Yii project has its opcode cache disabled the debug toolbar works as-expected. Either a fix or at least a mention in the documentation would be helpful so others don't spend time debugging the debugger. ;-)