#19197 [Opn->Bgs]: Serious bug with ImageCreateTrueColor and/or ? file upload

From: Date: Wed, 04 Sep 2002 17:29:45 +0000
Subject: #19197 [Opn->Bgs]: Serious bug with ImageCreateTrueColor and/or ? file upload
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-18440@lists.php.net to get a copy of this message
ID: 19197 Updated by: sniper@php.net Reported By: bugsphp@yayel.com -Status: Open +Status: Bogus Bug Type: GD related Operating System: Linux Redhat 7.2 PHP Version: 4.2.2 New Comment: I bet the patches which enable this gif writing are buggy. Not PHP problem at all. Previous Comments: ------------------------------------------------------------------------ [2002-09-04 12:16:56] bugsphp@yayel.com Mmmm according to the Zend Weekly news #83, php4.3 may read Gif files (ImageCreateFromGif) but won't include the function to write them (ImageGif), so this "gd inside!" build is useless for people who still want to use ImageGif() function, and I'll continue to use it from a patched gd2 or a gd<1.6, that is to say link to an external gd. :( ------------------------------------------------------------------------ [2002-09-04 11:43:27] bugsphp@yayel.com But does this build content all the GIF related functions (because of the lzh licence blablabla...) ?? ------------------------------------------------------------------------ [2002-09-04 06:18:37] sniper@php.net Reopening. It crashes, so there's really some bug in there. (although I believe it's in GD itself..) Please try this snapshot: http://snaps.php.net/php4-latest.tar.gz And configure it same as you did before EXCEPT for --with-gd use --with-gd=php (thus using our bundled version of gd 2.0.1 which has some fixes in it) If you still get the segfault, please provide the backtrace and a SHORT example script which can be used to reproduce it. ------------------------------------------------------------------------ [2002-09-04 00:01:07] kalowsky@php.net Comment added to the documentation. Closing bug. ------------------------------------------------------------------------ [2002-09-03 16:14:17] bugsphp@yayel.com Wow, it's been I while I could not reach bugs.php.net... anyway, I solve my problem and also tried to submit my comment to imagecreatetruecolor documentation page. When you think about it (and I was stupid), a Gif can't be made with ImageCreateTrueColor() since it can only index 256 colors. BUT: the problem still remains, there is no warning or an error message when ImageGif() is used with ImageCreateTrueColor(), and php crashed instead (and it's really a dirty bug, according that my script loops till it ends with apache child process). Thank you for fixing it. ------------------------------------------------------------------------ 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/19197 -- Edit this bug report at http://bugs.php.net/?id=19197&edit=1

« previous php.bugs (#18440) next »