|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-12-08 12:04 UTC] felipe@php.net
[2015-06-29 20:02 UTC] cmb@php.net
-Status: Assigned
+Status: Not a bug
-Assigned To: pajoye
+Assigned To: cmb
[2015-06-29 20:02 UTC] cmb@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Mon Jan 05 01:00:01 2026 UTC |
Description: ------------ When doing a imagefilledarc where the start and end angle are the same the angle is ignored and zero is used instead. Just upgraded from PHP 5.1.4 to 5.2.11 Using 5.1.4 the function would correctly position a line at the request angle with 5.2.11 zero is always used. the start and end must be at least 1 degree different to produce the correct result. Reproduce code: --------------- --- From manual page: function.imagefilledarc#Description --- <?php $img = imagecreate(200, 200); $white = imagecolorallocate($img, 255, 255, 255); $blue = imagecolorallocate($img, 153, 204, 255); $black = imagecolorallocate($img, 0, 0, 0); imagefilledarc($img, 100, 100, 175, 175,0,360, $blue,IMG_ARC_PIE); imagefilledarc($img, 100, 100, 175, 175, 150,150, $black,IMG_ARC_PIE|IMG_ARC_NOFILL |IMG_ARC_EDGED); header("Content-type: image/png"); imagepng($img); imagedestroy($img); ?> Expected result: ---------------- blue circle with black line drawn at 150degrees Actual result: -------------- blue circle with black line drawn at 0degrees