{"action":"created","issue":{"url":"https://api.github.com/repos/composer/composer/issues/6277","repository_url":"https://api.github.com/repos/composer/composer","labels_url":"https://api.github.com/repos/composer/composer/issues/6277/labels{/name}","comments_url":"https://api.github.com/repos/composer/composer/issues/6277/comments","events_url":"https://api.github.com/repos/composer/composer/issues/6277/events","html_url":"https://github.com/composer/composer/issues/6277","id":215276688,"node_id":"MDU6SXNzdWUyMTUyNzY2ODg=","number":6277,"title":"Change php version used by composer on windows","user":{"login":"crashbdx","id":517452,"node_id":"MDQ6VXNlcjUxNzQ1Mg==","avatar_url":"https://avatars1.githubusercontent.com/u/517452?v=4","gravatar_id":"","url":"https://api.github.com/users/crashbdx","html_url":"https://github.com/crashbdx","followers_url":"https://api.github.com/users/crashbdx/followers","following_url":"https://api.github.com/users/crashbdx/following{/other_user}","gists_url":"https://api.github.com/users/crashbdx/gists{/gist_id}","starred_url":"https://api.github.com/users/crashbdx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crashbdx/subscriptions","organizations_url":"https://api.github.com/users/crashbdx/orgs","repos_url":"https://api.github.com/users/crashbdx/repos","events_url":"https://api.github.com/users/crashbdx/events{/privacy}","received_events_url":"https://api.github.com/users/crashbdx/received_events","type":"User","site_admin":false},"labels":[{"id":262088746,"node_id":"MDU6TGFiZWwyNjIwODg3NDY=","url":"https://api.github.com/repos/composer/composer/labels/Question","name":"Question","color":"d4c5f9","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2017-03-19T16:45:34Z","updated_at":"2018-08-03T12:14:54Z","closed_at":"2017-03-20T21:43:51Z","author_association":"NONE","body":"Hi everyone, \r\n\r\nI don't understand why my composer is using a 5.4.45 php version when i don't see such version on my computer, i use wamp with php 5.6.25 , in my environmemt variable i have the this version on top of the list of path value.\r\nIs there a want to change the version composer is using please ?"},"comment":{"url":"https://api.github.com/repos/composer/composer/issues/comments/410235484","html_url":"https://github.com/composer/composer/issues/6277#issuecomment-410235484","issue_url":"https://api.github.com/repos/composer/composer/issues/6277","id":410235484,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMDIzNTQ4NA==","user":{"login":"linslin","id":6159031,"node_id":"MDQ6VXNlcjYxNTkwMzE=","avatar_url":"https://avatars0.githubusercontent.com/u/6159031?v=4","gravatar_id":"","url":"https://api.github.com/users/linslin","html_url":"https://github.com/linslin","followers_url":"https://api.github.com/users/linslin/followers","following_url":"https://api.github.com/users/linslin/following{/other_user}","gists_url":"https://api.github.com/users/linslin/gists{/gist_id}","starred_url":"https://api.github.com/users/linslin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/linslin/subscriptions","organizations_url":"https://api.github.com/users/linslin/orgs","repos_url":"https://api.github.com/users/linslin/repos","events_url":"https://api.github.com/users/linslin/events{/privacy}","received_events_url":"https://api.github.com/users/linslin/received_events","type":"User","site_admin":false},"created_at":"2018-08-03T12:14:54Z","updated_at":"2018-08-03T12:14:54Z","author_association":"NONE","body":"IMO there is no need to switch the  environment variables just for running composer commands with a different PHP Version (which is not set in your env paths.). Just run your `composer.phar` with a absolut PHP execution file path and you will be fine:\r\n\r\n**On window**: `C:\\xampp\\php\\php.exe C:\\ProgramData\\ComposerSetup\\bin\\composer.phar install`\r\n**On *ngix**: `/usr/bin/php /usr/local/bin/composer install`"}}
{"actor":{"display_login":"linslin"}}