PHP 5.4 , GD - PNG fails

Tim

Verified User
Joined
Oct 8, 2003
Messages
115
[SOLVED] PHP 5.4 , GD - PNG fails

Hey,

running a server (Debian 4, I know, it's old .. but nog the abilitiy at this moment to upgrade.)
at this moment there is a big issue with GD & PNG

We're using a script that uses imagecreatefrompng() but this one WONT work (JPEG/JPG is no problem.)
in our test script it just terminates the apache session!

We also getting this error:



The totally weird thing is that CustomBuild 2 has NO GD support (./build gd is gone??)

I tried to delete AL the libpng files in /usr/local/lib & /usr/lib and build libpng by my self (1.6.x)
no solutions
Deleted againg everything and tried it with ./build libpng (CB2 has 1.2.50) but PHPinfo() stil gives 1.5.13 ... ?

I'm running to a wall .... anyone a idea?
Also stopped creating of captcha's in WP plugins.


phpinfo:

php 5.4.17

GD Support enabled
GD Version bundled (2.1.0 compatible)
FreeType Support enabled
FreeType Linkage with freetype
FreeType Version 2.5.0
GIF Read Support enabled
GIF Create Support enabled
JPEG Support enabled
libJPEG Version 6b
PNG Support enabled
libPNG Version 1.5.13rc01
WBMP Support enabled
XBM Support enabled
 
Last edited:
[..]I tried to delete AL the libpng files in /usr/local/lib & /usr/lib and build libpng by my self (1.6.x)

Did you remember to do ./build php n after ./build libpng? I am running CentOS 6.4 and Custombuild 2.0, but don't have these problems.
 
Yes I did. All the time :) haha

./build libpng
./build php n (even y)

but .. with custombuild 2.0 there's no option with ./build php (even not when i just do ./build php )
 
Problem solved!

I changed in configure/ap2/configure.php54

--with-png-dir=/usr/local \

instead of : --with-png-dir=/usr/local/lib \

libpng is now updated and the PNG problem is fixed!
 
thanks tim.I am also searching for it.I also have same kind of error.thanks a lot
 
Back
Top