Backport of https://github.com/CHH/heroku-buildpack-php/pull/120