PHP5 - GetImageSize(), zlib, and SWF upload

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
justinvh
Forum Newbie
Posts: 1
Joined: Wed Aug 20, 2008 5:18 pm

PHP5 - GetImageSize(), zlib, and SWF upload

Post by justinvh »

Hi,

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=/opt
So, my question is really pertaining to anyone that has had a similar problem and how they went about fixing it.

Thanks 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
Post Reply