|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[1998-04-16 07:55 UTC] rasmus
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 03 09:00:02 2025 UTC |
<? Header("Content-type: image/gif"); $img = ImageCreate(256,256); $col1 = ImageColorAllocate($img,0,0,0); $col2 = ImageColorAllocate($img,255,0,0); ImageSetPixel($img,255,0,$col2); ImageSetPixel($img,255,1,$col2); ImageSetPixel($img,255,3,$col2); ImageSetPixel($img,255,4,$col2); ImageGif($img); ImageDestroy($img); ?> The script only sets pixels on (0,0) to (4,4) The problem comes from a wrongly-written line in functions/gd.c(line 661): x = yarg->value.lval; I think it should be: x = xarg->value.lval;