dmikusa / cf-php-apache-buildpack

CloudFoundry PHP & Apache HTTPD Buildpack
Apache License 2.0
4 stars 11 forks source link

Add zlib support #9

Closed soudmaijer closed 10 years ago

soudmaijer commented 10 years ago

Hi,

is it possible to add zlib support to the php binary. Or is there a way to do it myself?

I tried adding (compiled) zlib.so binaries to my /lib folder, but this does not work.

I also added the extension to the php.ini and enabled zlib, but no success.

dmikusa commented 10 years ago

This appears to be an oversight on my part. It should have zlib support (--with-zlib). I've adjusted the build scripts so that future releases have it as a shared library. It should be available with PHP 5.5.7, since I've just added that release today. If you're using PHP 5.5, just update the version in your options.json file. As far as PHP 5.4.23, I've rebuilt that to include zlib support and if you're using PHP 5.4 just push your app again it should pick up that change. If you're using PHP 5.3, just updated the version in your options.json file to use version 5.3.28. That should also include zlib support.

One note on zlib support, I've compiled it as a shared library so you'll need to modify your php.ini file to enable that extension. Just add the following line in your extensions section.

extension=zlib.so

That should be it.

dmikusa commented 10 years ago

Oh, and thanks for the report!

soudmaijer commented 10 years ago

Awesome, thanks for the ultra fast fix. Confirmed working after pushing my app again with php 5.4.

Thanks!