{"action":"created","issue":{"url":"https://api.github.com/repos/conradkleinespel/sphp-osx/issues/4","labels_url":"https://api.github.com/repos/conradkleinespel/sphp-osx/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/conradkleinespel/sphp-osx/issues/4/comments","events_url":"https://api.github.com/repos/conradkleinespel/sphp-osx/issues/4/events","html_url":"https://github.com/conradkleinespel/sphp-osx/issues/4","id":66639119,"number":4,"title":"php binary not switching","user":{"login":"michaelburtonray","id":188906,"avatar_url":"https://avatars.githubusercontent.com/u/188906?v=3","gravatar_id":"","url":"https://api.github.com/users/michaelburtonray","html_url":"https://github.com/michaelburtonray","followers_url":"https://api.github.com/users/michaelburtonray/followers","following_url":"https://api.github.com/users/michaelburtonray/following{/other_user}","gists_url":"https://api.github.com/users/michaelburtonray/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelburtonray/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelburtonray/subscriptions","organizations_url":"https://api.github.com/users/michaelburtonray/orgs","repos_url":"https://api.github.com/users/michaelburtonray/repos","events_url":"https://api.github.com/users/michaelburtonray/events{/privacy}","received_events_url":"https://api.github.com/users/michaelburtonray/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-04-06T16:01:08Z","updated_at":"2015-04-07T01:40:30Z","closed_at":null,"body":"The switching the php binary (used to run the local development server among other things) is not included in this script. Would be super helpful to include it."},"comment":{"url":"https://api.github.com/repos/conradkleinespel/sphp-osx/issues/comments/90307935","html_url":"https://github.com/conradkleinespel/sphp-osx/issues/4#issuecomment-90307935","issue_url":"https://api.github.com/repos/conradkleinespel/sphp-osx/issues/4","id":90307935,"user":{"login":"michaelburtonray","id":188906,"avatar_url":"https://avatars.githubusercontent.com/u/188906?v=3","gravatar_id":"","url":"https://api.github.com/users/michaelburtonray","html_url":"https://github.com/michaelburtonray","followers_url":"https://api.github.com/users/michaelburtonray/followers","following_url":"https://api.github.com/users/michaelburtonray/following{/other_user}","gists_url":"https://api.github.com/users/michaelburtonray/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelburtonray/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelburtonray/subscriptions","organizations_url":"https://api.github.com/users/michaelburtonray/orgs","repos_url":"https://api.github.com/users/michaelburtonray/repos","events_url":"https://api.github.com/users/michaelburtonray/events{/privacy}","received_events_url":"https://api.github.com/users/michaelburtonray/received_events","type":"User","site_admin":false},"created_at":"2015-04-07T01:40:30Z","updated_at":"2015-04-07T01:40:30Z","body":"I think it's a $PATH issue, possibly on my end, because when I then do \r\n```\r\n➜  /usr/local/bin/php -v\r\nPHP 5.4.39 (cli) (built: Mar 23 2015 01:44:05)\r\nCopyright (c) 1997-2014 The PHP Group\r\nZend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies\r\n```\r\n\r\nhowever, /usr/local/bin is before /usr/bin in my $PATH\r\n\r\n```\r\n➜  echo $PATH\r\n/Users/michaelburtonray/.rvm/gems/ruby-2.2.0/bin\r\n/Users/michaelburtonray/.rvm/gems/ruby-2.2.0@global/bin\r\n/Users/michaelburtonray/.rvm/rubies/ruby-2.2.0/bin\r\n/usr/local/heroku/bin\r\n/usr/local/mysql/bin\r\n/usr/local/opt/php56/bin\r\n/usr/local/bin\r\n/usr/local/sbin\r\n/usr/local/bin\r\n/usr/bin\r\n/bin\r\n/usr/sbin\r\n/sbin\r\n/opt/X11/bin\r\n/usr/local/bin\r\n/usr/bin\r\n/bin\r\n/usr/sbin\r\n/sbin\r\n/usr/local/share/npm/bin\r\n/opt/X11/bin\r\n/usr/local/mysql/bin\r\n/Users/michaelburtonray/bin\r\n/Users/michaelburtonray/.rvm/bin\r\n\r\n```\r\n\r\nSo I'm not sure why it uses /usr/bin/php before /usr/local/bin/php :-/"}}