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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
45 + 38 = ?
Subscribe to this entry?

 
 [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 27 05:01:31 2024 UTC