I didn't succed in hacking the php buildpack to add this.
If you have explanation I'm interested. At least add this with the next update.
Correctly pass HTTPS = on to PHP only when SSL is used.
zlib is now in the new version of PHP support on Heroku. Check out the blog post and the Dev Center category with the Getting Started Guide and other resources!