I am having an issue with statically compiling zlib into PHP5 to overcome Bug #2961 - Or so I assume.
Basically, my problem is exactly as proposed in the bug; I was upgrading our old PHP4 installation to the more modern PHP5 setup and one of the more important features for our clients were uploading flash (specifically SWF image type) for banner ad purposes.
Like the bug suggested, getImageSize return false when given a swf file.
The workaround suggests building PHP5 with zlib statically - By default zlib builds a static library, unless otherwise specified - And I am building PHP with zlib support as shown below.
My current configuration is as follows:
Code: Select all
./configure --with-zlib-dir=static,/usr/local/lib --with-apxs2 --with-mysql --with-gd --with-jpeg-dir=/usr/local/include --with-curl --with-ttf --prefix=/optThanks in advance,
Justin
Code: Select all
RedHat 2.6.9-42.0.2.EL
PHP 5.2.6 (cli) (built: Jul 31 2008 10:15:33)
Server version: Apache/2.0.52
Server built: May 9 2008 05:54:40