#42843 [Opn->Bgs]: imagefilledarc(...) don't draw same ellipse as in previous version of PHP

From: Date: Thu, 04 Oct 2007 06:27:09 +0000
Subject: #42843 [Opn->Bgs]: imagefilledarc(...) don't draw same ellipse as in previous version of PHP
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-118172@lists.php.net to get a copy of this message
ID: 42843 Updated by: pajoye@php.net Reported By: nicosinus33 at yahoo dot fr -Status: Open +Status: Bogus Bug Type: GD related Operating System: Windows 2003 Server PHP Version: 5.2.4 -Assigned To: +Assigned To: pajoye New Comment: The regression was introduced in 5.2.3 and has been yet fixed. Previous Comments: ------------------------------------------------------------------------ [2007-10-03 17:25:41] nicosinus33 at yahoo dot fr Description: ------------ The function imagefilledarc(...) is used to draw partial ellipse. In PHP 5.2.3, when the arc start angle is the same that the arc end angle, the function draws an empty ellipse. In the same condition, but using PHP5.2.4, the function draws a full ellipse. Reproduce code: --------------- <?php // create image $image = imagecreatetruecolor(100, 100); // allocate some solors $red = imagecolorallocate($image, 0xFF, 0x00, 0x00); //draw the ellipse imagefilledarc($image, 50, 50, 100, 50, 75, 75 , $red, IMG_ARC_PIE); // flush image header('Content-type: image/png'); imagepng($image); imagedestroy($image); ?> Expected result: ---------------- Like in PHP 5.2.3, the code must draw nothing (an empty ellipse) Actual result: -------------- The code draws a red ellipse. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=42843&edit=1

« previous php.bugs (#118172) next »