#18303 [Csd]: PHP crashes when ImagePNG() is used
| From: | thx dot 79 at schweiz dot org | Date: | Mon, 19 Aug 2002 13:41:06 +0000 |
| Subject: | #18303 [Csd]: PHP crashes when ImagePNG() is used | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-17188@lists.php.net to get a copy of this message | ||
ID: 18303
User updated by: thx.79@schweiz.org
Reported By: thx.79@schweiz.org
Status: Closed
Bug Type: GD related
Operating System: Linux (Kernel 2.4.4-4GB)
PHP Version: 4.2.1
New Comment:
Ok, final notes on this one:
The problem wasn't libpng, zlib or jpeg-6b, it was the PDF-Library!!
See also Bug 16841 for a similar case. So before you try to recompile
libpng and the other stuff, try (re)compiling the newest version of
pdflib...
It took me quite a while to figure this all out, so I hope this helps
anybody else to save some time.
Bye, Thomas
Previous Comments:
------------------------------------------------------------------------
[2002-07-23 08:44:27] thx.79@schweiz.org
Ok, I deleted /usr/local completely and compiled everything from
scratch....and it worked. So it must have been something with the libs
or so.
Thanks and bye,
Thomas
------------------------------------------------------------------------
[2002-07-22 21:32:43] sniper@php.net
I'm unable to get PHP to crash when using libpng 1.2.0.
You propably had a mixup with the libs. Remove ALL existing
libpng* files and recompile libgd using 1.2.x and remember
to point PHP configure to the SAME libs with --with-png-dir
------------------------------------------------------------------------
[2002-07-22 21:29:25] thx.79@schweiz.org
Ok, you were right. Downgrading to libpng-1.0.14 was the right thing to
do.
But I still think this is a little bit odd and the problem still seems
to be somehow PHP-related, because if I compile GD with libpng-1.2.4
(which crashes in PHP) and then run 'make test', all PNG-Images are
generated without _any_ problem at all!
And, aren't there any functionalities missing, when I just have the
older version of libpng??
Bye, Thomas
------------------------------------------------------------------------
[2002-07-12 08:06:40] sniper@php.net
And make sure you really have compiled both PHP and GD with SAME
libraries (libpng, zlib..etc.)
------------------------------------------------------------------------
[2002-07-12 07:00:22] sander@php.net
I'm using libpng 1.0.12 and I don't have any problems. As Jani (sniper)
said on the orginal bugreport, libpng 1.2.x is reported to work badly
with libgd. You might try downgrading libpng to 1.0.x. If the problem
goes away, then it's probably not a bug in PHP.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/18303
--
Edit this bug report at http://bugs.php.net/?id=18303&edit=1