Since I installed APC for PHP with PECL I get sometimes these errors: Cannot redeclare class xxx
xxx changes from time to time. I could disable APC but
Well it is a known problem with apc that it mixes up include_once
directivse that are called relatively from different locations.
So if you do include_once myclass.php
and then in a subdirectory do include_once ../myclass.php
apc could mix this up and think its different files and loads it twice.
However this is fixed in later versions.
If you can drill down your code to the class that is loaded twice you could do some checking if the class is already loaded with class_defined
or some callable stuff.
You can also use the apc.filter
directive to prevent certain files from beeing cached at all.