I upgraded to PHP 5.2 from 4.3 recently and came across a couple of error messages:
php, PHP Warning: imagepng(): gd-png: fatal libpng error: zlib error in … followed by:
php, PHP Warning: imagepng(): gd-png error: setjmp returns error condition in …
Turns out the paramters for imagepng changed in PHP 5.1.3, and I’m not sure what the third argument used to be, but where I had
imagepng($image, null, 100) it died, because the third argument (quality) is supposed to be 0 to 9 now.
I came across postings saying to replace DLL files and all this nonsense, but all I needed to do was change the 100 to a 9.