{"action":"created","issue":{"url":"https://api.github.com/repos/heroku/heroku-buildpack-php/issues/117","labels_url":"https://api.github.com/repos/heroku/heroku-buildpack-php/issues/117/labels{/name}","comments_url":"https://api.github.com/repos/heroku/heroku-buildpack-php/issues/117/comments","events_url":"https://api.github.com/repos/heroku/heroku-buildpack-php/issues/117/events","html_url":"https://github.com/heroku/heroku-buildpack-php/issues/117","id":87518507,"number":117,"title":"GMP functions support","user":{"login":"josecelano","id":58816,"avatar_url":"https://avatars.githubusercontent.com/u/58816?v=3","gravatar_id":"","url":"https://api.github.com/users/josecelano","html_url":"https://github.com/josecelano","followers_url":"https://api.github.com/users/josecelano/followers","following_url":"https://api.github.com/users/josecelano/following{/other_user}","gists_url":"https://api.github.com/users/josecelano/gists{/gist_id}","starred_url":"https://api.github.com/users/josecelano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/josecelano/subscriptions","organizations_url":"https://api.github.com/users/josecelano/orgs","repos_url":"https://api.github.com/users/josecelano/repos","events_url":"https://api.github.com/users/josecelano/events{/privacy}","received_events_url":"https://api.github.com/users/josecelano/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-06-11T22:19:37Z","updated_at":"2015-06-11T23:26:13Z","closed_at":null,"body":"Hi, how could I add GMP support? http://php.net/manual/en/book.gmp.php\r\n\r\nShould I do something like this?:\r\n\r\nhttp://www.sitepoint.com/install-custom-php-extensions-heroku/\r\n\r\nor is there an easy way to do it?\r\n\r\nThanks"},"comment":{"url":"https://api.github.com/repos/heroku/heroku-buildpack-php/issues/comments/111305510","html_url":"https://github.com/heroku/heroku-buildpack-php/issues/117#issuecomment-111305510","issue_url":"https://api.github.com/repos/heroku/heroku-buildpack-php/issues/117","id":111305510,"user":{"login":"martijngastkemper","id":250662,"avatar_url":"https://avatars.githubusercontent.com/u/250662?v=3","gravatar_id":"","url":"https://api.github.com/users/martijngastkemper","html_url":"https://github.com/martijngastkemper","followers_url":"https://api.github.com/users/martijngastkemper/followers","following_url":"https://api.github.com/users/martijngastkemper/following{/other_user}","gists_url":"https://api.github.com/users/martijngastkemper/gists{/gist_id}","starred_url":"https://api.github.com/users/martijngastkemper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martijngastkemper/subscriptions","organizations_url":"https://api.github.com/users/martijngastkemper/orgs","repos_url":"https://api.github.com/users/martijngastkemper/repos","events_url":"https://api.github.com/users/martijngastkemper/events{/privacy}","received_events_url":"https://api.github.com/users/martijngastkemper/received_events","type":"User","site_admin":false},"created_at":"2015-06-11T23:26:13Z","updated_at":"2015-06-11T23:26:13Z","body":"You need to compile GMP library. The ssh2 extension has [libssh2](https://github.com/martijngastkemper/heroku-buildpack-php/blob/ext-ssh/support/build/libraries/libssh2) as a dependency. Make sure you use the right prefix.\r\n\r\nYou have to add the dependency to https://github.com/heroku/heroku-buildpack-php/blob/master/support/build/php#L3. Then add --with-gmp=${OUT_PREFIX} to L44.\r\n\r\nI think that should do the trick.\r\n\r\n"}}