{"action":"created","issue":{"url":"https://api.github.com/repos/heroku/heroku-buildpack-php/issues/152","repository_url":"https://api.github.com/repos/heroku/heroku-buildpack-php","labels_url":"https://api.github.com/repos/heroku/heroku-buildpack-php/issues/152/labels{/name}","comments_url":"https://api.github.com/repos/heroku/heroku-buildpack-php/issues/152/comments","events_url":"https://api.github.com/repos/heroku/heroku-buildpack-php/issues/152/events","html_url":"https://github.com/heroku/heroku-buildpack-php/issues/152","id":134378613,"number":152,"title":"Make Application ID and/or name available to environment","user":{"login":"holtkamp","id":776405,"avatar_url":"https://avatars.githubusercontent.com/u/776405?v=3","gravatar_id":"","url":"https://api.github.com/users/holtkamp","html_url":"https://github.com/holtkamp","followers_url":"https://api.github.com/users/holtkamp/followers","following_url":"https://api.github.com/users/holtkamp/following{/other_user}","gists_url":"https://api.github.com/users/holtkamp/gists{/gist_id}","starred_url":"https://api.github.com/users/holtkamp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/holtkamp/subscriptions","organizations_url":"https://api.github.com/users/holtkamp/orgs","repos_url":"https://api.github.com/users/holtkamp/repos","events_url":"https://api.github.com/users/holtkamp/events{/privacy}","received_events_url":"https://api.github.com/users/holtkamp/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-17T19:36:08Z","updated_at":"2016-02-22T12:13:23Z","closed_at":"2016-02-21T12:29:38Z","body":"[This section of the API documentation](https://devcenter.heroku.com/articles/platform-api-reference#dyno-restart) indicates that to be able to restart a Dyno, one needs to 'know' both:\r\n\r\n- $APP_ID_OR_NAME\r\n- $DYNO_ID_OR_NAME\r\n\r\nWhen restarting all Dynos, the ```$APP_ID_OR_NAME``` is required.\r\n\r\nSuppose I want to have an Application initiate a restart for whatever reason / to see how our application deals with that / clear up memory from APCu caches that have become 'too much' etc. Then it would nice that an environment is aware of these variables.\r\n\r\nFor a PHP application, phpinfo() provides an overview of the available environment variables. That overview does contain a variable ```DYNO```, but nothing related to the Application ID or name...  Might it be an idea to add it so the Application is a bit more self-aware, or am I missing something where I can find it?\r\n"},"comment":{"url":"https://api.github.com/repos/heroku/heroku-buildpack-php/issues/comments/187148100","html_url":"https://github.com/heroku/heroku-buildpack-php/issues/152#issuecomment-187148100","issue_url":"https://api.github.com/repos/heroku/heroku-buildpack-php/issues/152","id":187148100,"user":{"login":"holtkamp","id":776405,"avatar_url":"https://avatars.githubusercontent.com/u/776405?v=3","gravatar_id":"","url":"https://api.github.com/users/holtkamp","html_url":"https://github.com/holtkamp","followers_url":"https://api.github.com/users/holtkamp/followers","following_url":"https://api.github.com/users/holtkamp/following{/other_user}","gists_url":"https://api.github.com/users/holtkamp/gists{/gist_id}","starred_url":"https://api.github.com/users/holtkamp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/holtkamp/subscriptions","organizations_url":"https://api.github.com/users/holtkamp/orgs","repos_url":"https://api.github.com/users/holtkamp/repos","events_url":"https://api.github.com/users/holtkamp/events{/privacy}","received_events_url":"https://api.github.com/users/holtkamp/received_events","type":"User","site_admin":false},"created_at":"2016-02-22T12:13:23Z","updated_at":"2016-02-22T12:13:23Z","body":"ok, thanks for the pointer, and sorry for the double work.."}}