#19704 [Fbk->Opn]: ImageTrueColorToPalette() kills PHP

From: Date: Sat, 05 Oct 2002 15:03:17 +0000
Subject: #19704 [Fbk->Opn]: ImageTrueColorToPalette() kills PHP
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-21570@lists.php.net to get a copy of this message
ID: 19704 User updated by: sprice@wisc.edu Reported By: sprice@wisc.edu -Status: Feedback +Status: Open Bug Type: GD related Operating System: Darwin 6 (Mac OS 10.2) PHP Version: 4CVS-2002-10-02 New Comment: Tried it, still doesn't work. I wish you guys would make the libpng version show up in phpinfo() so I could be sure I compiled everything right. If everything worked as advertised, I compiled libpng v1.2.5rc3. I configured with "--with-gd=/usr/local" and "--with-gd=php" Previous Comments: ------------------------------------------------------------------------ [2002-10-05 01:45:28] iliaa@php.net Can you try the latest libpng (libpng 1.2.5). The problem seems to be particular to Mac OS, since *something* causes the filePutbuf() function inside the gd library to get an incorect size of data to write, resulting in a bug you are seeing. For the record, I am unable to replicate this bug on Linux. ------------------------------------------------------------------------ [2002-10-04 17:45:25] ndsantos@nuxworks.net I encounter the same error in Linux but not in Windows. The problem occurs when the script is run through a browser but works fine when run from the command line. ------------------------------------------------------------------------ [2002-10-02 13:11:01] sprice@wisc.edu I have tried libpng v1.0.14 using both "--with-gd=/usr/local" and "--with-gd=php" and I recompiled GD with the old version of libpng. I wish you guys would included the version of png in phpinfo() so I know that I grabbed the correct version of libpng. Anyway, the error remains the same as ever. ------------------------------------------------------------------------ [2002-10-02 12:26:49] rasmus@php.net Just to give us another datapoint it would be interesting to see if the crash is the same with libpng-1.0.x ------------------------------------------------------------------------ [2002-10-02 12:15:19] sprice@wisc.edu Yep, I haven't changed versions of libpng. Everything has been compiled against v1.2.4. Should I downgrade to v1.0.x? ------------------------------------------------------------------------ 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/19704 -- Edit this bug report at http://bugs.php.net/?id=19704&edit=1

« previous php.bugs (#21570) next »