note 47241 added to function.imagefill

From: Date: Mon, 08 Nov 2004 10:27:52 +0000
Subject: note 47241 added to function.imagefill
Groups: php.notes 
Request: Send a blank email to php-notes+get-80275@lists.php.net to get a copy of this message
It's worth noting that (though the problem seems to have been fixed in recent versions of PHP) when using the imagefill() function on a server running PHP 4.3.8 and v2.0.23 compatible GD I was not able to get a reliable color fill. Sometimes it would fill the area, sometimes not... randomly. When the same code was tested on a PHP5.02 server there was no issue. <?php header("Content-type: image/jpeg"); $image = imagecreate(200,200); $red = imagecolorallocate($image, 255,0,0); $blue = imagecolorallocate($image, 0,0,255); imageline($image, 0,0, 199,199, $blue); imagefill($image, 0,199, $blue); imagejpeg($image); ?> ---- Manual Page -- http://www.php.net/manual/en/function.imagefill.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+47241 Delete -- http://master.php.net/manage/user-notes.php?action=delete+47241&report=yes Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+47241&report=yes&reason=bad+code Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+47241&report=yes&reason=spam Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+47241&report=yes&reason=useless+example Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+47241&report=yes&reason=contains+commercial+links Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+47241&report=yes&reason=useless+note Reject -- http://master.php.net/manage/user-notes.php?action=reject+47241&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#80275) next »