|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits              [2007-10-04 06:27 UTC] pajoye@php.net
 | |||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 14:00:01 2025 UTC | 
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.