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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Mon May 06 12:01:31 2024 UTC