#19197 [Bgs]: Serious bug with ImageCreateTrueColor and/or ? file upload
| From: | bugsphp at yayel dot com | Date: | Wed, 04 Sep 2002 17:53:45 +0000 |
| Subject: | #19197 [Bgs]: Serious bug with ImageCreateTrueColor and/or ? file upload | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-18441@lists.php.net to get a copy of this message | ||
ID: 19197
User updated by: bugsphp@yayel.com
Reported By: bugsphp@yayel.com
Status: Bogus
Bug Type: GD related
Operating System: Linux Redhat 7.2
PHP Version: 4.2.2
New Comment:
Ok, let's consider it's a gd bug. But why did php loops my script (you
can look at it, there is no loop written) and tried to write several
times the gif file and also insert into mysql (only one INSERT query
coded) ??
I do not write in C, Perl, whatever, so I cannot try other language
which can use gd to see if it also crashes or not.
I think we should prevent with a php error message like "ImageGif
cannot write a file with more than 256 colors"... mmm ? :)
Previous Comments:
------------------------------------------------------------------------
[2002-09-04 12:29:45] sniper@php.net
I bet the patches which enable this gif writing are buggy.
Not PHP problem at all.
------------------------------------------------------------------------
[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.
------------------------------------------------------------------------
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