ID: 42843 Updated by: [EMAIL PROTECTED] 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