GD 2.0.33 out a month ago

Have you been able to compile this version of the GD library with PHP 4.3.9 ?

I did it, but my phpinfo() still shows "bundled (2.0.28 compatible)".

This is what I did:

1) Edit customapache/build and change the GD version number to match 2.0.33 (variable GD_VER).

2) Edit configure.php to add/check these lines:
--with-gd \
--with-gd-dir=/usr/local \

3) ./build php (answering Y when asked whether to compile GD).

4) service httpd restart

5) test GD:
[root@localhost customapache]# /usr/local/bin/gdlib-config --all
GD library 2.0.33
includedir: /usr/local/include
cflags: -I/usr/local/include
ldflags: -L/usr/local/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib
libs: -ljpeg -lpng12 -lz -lm
libdir: /usr/local/lib
features: GD_JPEG GD_PNG GD_GIF

However, my phpinfo() still shows "bundled (2.0.28 compatible)". :confused:

I'm wondering if this is really possible or PHP only works with their bundled GD library.

Can anyone see if I did anything wrong or confirm if this is possible?

Thanks a lot
 
same deal, i think php version needs this one to be pre-compiled. so next php release i'm sure they will include that in.

I could be wrong though there is another topic with people having the same problem as this with an older version of GD.
 
I've tried to compile PHP using the --with-gd=/usr/local argument only, and it has given me some compilation errors, so I created a bug report here:
http://bugs.php.net/bug.php?id=31043

They say the GD library bundled in PHP 4.3.9 already supports the new GIF animation features, however I've been looking at the code and I can't find the new functions anywhere...

I also found patches to include this functions in the bundled GD lib here:
http://www.zend.com/lists/php-dev/200411/msg00171.html
http://hyvatti.iki.fi/~jaakko/sw/
(if anyone wants to give them a try...)

More information on the new functions can be found here:
http://www.boutell.com/gd/manual2.0.33.html
(search for gdImageGifAnimBegin, etc.)
 
Back
Top