php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #18233 multiple imagefill results in server error
Submitted: 2002-07-08 21:11 UTC Modified: 2002-07-08 21:38 UTC
From: miclaro at gmx dot de Assigned:
Status: Not a bug Package: GD related
PHP Version: 4.2.1 OS: Windows XP
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: miclaro at gmx dot de
New email:
PHP Version: OS:

 

 [2002-07-08 21:11 UTC] miclaro at gmx dot de
fresh install over iis, + GD library.

my script:
<?
header ("Content-type: image/png");

// image size is 529x656 and its a map.
$img=imagecreatefrompng ("image.png");

for($i=0;$i<5;$i++)
{
	$x=rand(0,imagesx($img));
	$y=rand(0,imagesy($img));
	imagefill ($img,$x,$y,0x9f23a4);
	
}

imagepng ($img); 
imagedestroy($img);
?>

this results in:
"
CGI Error
The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are:
"

nothing more...

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-07-08 21:38 UTC] eru@php.net
You have to allocate a color, before you can use it in the imagefill-function. Please take a look at http://www.php.net/manual/en/function.imagecolorallocate.php

Nevertheless, this is not a place to ask support-questions, please take a look at http://www.php.net/support.php

User error -> Bogus

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Jul 01 20:01:36 2025 UTC