{"action":"created","issue":{"url":"https://api.github.com/repos/composer/composer/issues/4822","labels_url":"https://api.github.com/repos/composer/composer/issues/4822/labels{/name}","comments_url":"https://api.github.com/repos/composer/composer/issues/4822/comments","events_url":"https://api.github.com/repos/composer/composer/issues/4822/events","html_url":"https://github.com/composer/composer/issues/4822","id":128426888,"number":4822,"title":"Same autoloader used on 2 virtual hosts doesn't work","user":{"login":"tiaanl","id":2261995,"avatar_url":"https://avatars.githubusercontent.com/u/2261995?v=3","gravatar_id":"","url":"https://api.github.com/users/tiaanl","html_url":"https://github.com/tiaanl","followers_url":"https://api.github.com/users/tiaanl/followers","following_url":"https://api.github.com/users/tiaanl/following{/other_user}","gists_url":"https://api.github.com/users/tiaanl/gists{/gist_id}","starred_url":"https://api.github.com/users/tiaanl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tiaanl/subscriptions","organizations_url":"https://api.github.com/users/tiaanl/orgs","repos_url":"https://api.github.com/users/tiaanl/repos","events_url":"https://api.github.com/users/tiaanl/events{/privacy}","received_events_url":"https://api.github.com/users/tiaanl/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/composer/composer/labels/Support","name":"Support","color":"fef2c0"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2016-01-24T21:36:53Z","updated_at":"2016-01-25T11:21:10Z","closed_at":null,"body":"I'm deploying the same site with the exact composer files to a single instance of apache.  In this case the ComposerAutoloaderInit<hash> classes between the 2 virtual hosts get confused and the two sites start loading each other's classes.  Something to do with spl_autoload_register maybe?"},"comment":{"url":"https://api.github.com/repos/composer/composer/issues/comments/174476843","html_url":"https://github.com/composer/composer/issues/4822#issuecomment-174476843","issue_url":"https://api.github.com/repos/composer/composer/issues/4822","id":174476843,"user":{"login":"Seldaek","id":183678,"avatar_url":"https://avatars.githubusercontent.com/u/183678?v=3","gravatar_id":"","url":"https://api.github.com/users/Seldaek","html_url":"https://github.com/Seldaek","followers_url":"https://api.github.com/users/Seldaek/followers","following_url":"https://api.github.com/users/Seldaek/following{/other_user}","gists_url":"https://api.github.com/users/Seldaek/gists{/gist_id}","starred_url":"https://api.github.com/users/Seldaek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Seldaek/subscriptions","organizations_url":"https://api.github.com/users/Seldaek/orgs","repos_url":"https://api.github.com/users/Seldaek/repos","events_url":"https://api.github.com/users/Seldaek/events{/privacy}","received_events_url":"https://api.github.com/users/Seldaek/received_events","type":"User","site_admin":false},"created_at":"2016-01-25T11:21:10Z","updated_at":"2016-01-25T11:21:10Z","body":"@jakoch I am not sure I get what you mean. Even if there is only one cache, there are still two files and including one or the other should yield a different result, AFAIK cache is per file and not class name?! \r\n\r\n@tiaanl it sounds like the only way to work around would be to generate one archive per site, you can use `composer config autoloader-suffix SomeFixedSuffix && composer dump- autoload` to rebuild the autoloader with a suffix of your choosing. You could do that twice with different suffixes to generate two archives that are unique, but still sounds weird to me that you have to do that at all."}}