|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #32891 Bug using imagefilledellipse at position 0 vertically
Submitted: 2005-04-29 14:04 UTC Modified: 2005-05-01 08:03 UTC
From: anders at apt dot no Assigned: pajoye (profile)
Status: Closed Package: GD related
PHP Version: 4CVS, 5.*CVS (2005-04-30) OS: *
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.
Block user comment
Status: Assign to:
Bug Type:
From: anders at apt dot no
New email:
PHP Version: OS:


 [2005-04-29 14:04 UTC] anders at apt dot no
While drawing an elliptic object positioned vertically at the top(0px) the second line is not drawn. I'm using the embedded GD library (2.0.28 compatible).

Reproduce code:
if ($im = @imagecreatetruecolor(100, 100)) {
	$intCol = imagecolorallocate($im, 0xFF, 0x02, 0xF0);
	imagefilledellipse($im, 50, 0, 50, 50, $intCol);
	header('Content-type: image/png');
} else {
	echo 'Could not create truecolor image';

Expected result:
I expect to see half a circle, with it's center at 50 x 0, like this:

Actual result:
Instead I get this circle, with one line missing:

This image was created with the reproduce code:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2005-05-01 08:03 UTC]
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
Thank you for the report, and for helping us make PHP better.

Fixed in php4, 5.0 and 5.

Thanks for the test case

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Jun 24 06:01:31 2024 UTC