I'm running a one instance Apache setup with multiple virtual hosts that runs different versions of the same code base.
By this I mean that one virtual host can server one version of a class and another can server second version of the same class (same namespace, same name).
/file/path/host-a/MyClass.php
/file/path/host-b/MyClass.php
Sometimes I get an exception that shows me that one of the virtual hosts uses the "wrong" version of a class. E.g. on host b I get an exception with file path to script of /file/path/host-a/MyClass.php
I thought that the APC optcode cache used the file path, at least as a part of the key, but I'm fearing, that it only uses a qualified class name like:
My\Namespace\MyClass
Is that the case? Please point to any documentation on this subject if possible.