{"action":"created","issue":{"url":"https://api.github.com/repos/composer/composer/issues/4484","labels_url":"https://api.github.com/repos/composer/composer/issues/4484/labels{/name}","comments_url":"https://api.github.com/repos/composer/composer/issues/4484/comments","events_url":"https://api.github.com/repos/composer/composer/issues/4484/events","html_url":"https://github.com/composer/composer/issues/4484","id":110061481,"number":4484,"title":"composer_autoload.php can require files that do not exists.","user":{"login":"daiglej","id":13904540,"avatar_url":"https://avatars.githubusercontent.com/u/13904540?v=3","gravatar_id":"","url":"https://api.github.com/users/daiglej","html_url":"https://github.com/daiglej","followers_url":"https://api.github.com/users/daiglej/followers","following_url":"https://api.github.com/users/daiglej/following{/other_user}","gists_url":"https://api.github.com/users/daiglej/gists{/gist_id}","starred_url":"https://api.github.com/users/daiglej/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daiglej/subscriptions","organizations_url":"https://api.github.com/users/daiglej/orgs","repos_url":"https://api.github.com/users/daiglej/repos","events_url":"https://api.github.com/users/daiglej/events{/privacy}","received_events_url":"https://api.github.com/users/daiglej/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":2,"created_at":"2015-10-06T17:41:07Z","updated_at":"2015-10-07T10:37:21Z","closed_at":null,"body":"If in composer.json of you requirement contains like this \r\n\"autoload\": {\r\n\"file\":[\"src/somefile.php\"]\r\n}\r\n\r\nIn the HEAD of it's repository, but you have required a commit hash that is older than the HEAD (One that does not yet contain the file). The file will still be part of the composer_autoload.php.\r\n\r\nthen when in your code when you will \"require vendor/autoload.php\".\r\n\r\nYou will get a fatal error :  \r\n\r\nFatal error: require(): Failed opening required '.../vendor/cloudinary/cloudinary_php/src/Helpers.php' in .../vendor/composer/autoload_real.php on line 59\r\n\r\nNote : you can reproduce this issue by doing : \r\n./composer.phar require cloudinary/cloudinary_php  dev-master#62c4da6"},"comment":{"url":"https://api.github.com/repos/composer/composer/issues/comments/146149433","html_url":"https://github.com/composer/composer/issues/4484#issuecomment-146149433","issue_url":"https://api.github.com/repos/composer/composer/issues/4484","id":146149433,"user":{"login":"alcohol","id":21414,"avatar_url":"https://avatars.githubusercontent.com/u/21414?v=3","gravatar_id":"","url":"https://api.github.com/users/alcohol","html_url":"https://github.com/alcohol","followers_url":"https://api.github.com/users/alcohol/followers","following_url":"https://api.github.com/users/alcohol/following{/other_user}","gists_url":"https://api.github.com/users/alcohol/gists{/gist_id}","starred_url":"https://api.github.com/users/alcohol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alcohol/subscriptions","organizations_url":"https://api.github.com/users/alcohol/orgs","repos_url":"https://api.github.com/users/alcohol/repos","events_url":"https://api.github.com/users/alcohol/events{/privacy}","received_events_url":"https://api.github.com/users/alcohol/received_events","type":"User","site_admin":false},"created_at":"2015-10-07T10:37:21Z","updated_at":"2015-10-07T10:37:21Z","body":"It is known that using a #ref in your version constraint comes with various caveats. You simply have to learn to live with those. There is no intention on \"fixing\" any of this. Using a #ref in your version constraint is very bad practice and should be avoided at all times."}}