php.net |  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
 [2005-04-29 14:04 UTC] anders at apt dot no
Description:
------------
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');
	imagepng($im);
} 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:

http://kunde.apt.no/aso/imagefilledellipse/imagefilledellipse_expected_result.png

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

http://kunde.apt.no/aso/imagefilledellipse/imagefilledellipse_actual_result.png

This image was created with the reproduce code:
http://kunde.apt.no/aso/imagefilledellipse/imagefilledellipse_bug.php

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-05-01 08:03 UTC] pajoye@php.net
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
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.

Fixed in php4, 5.0 and 5.

Thanks for the test case

--Pierre
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Nov 12 16:01:32 2024 UTC