From: andi at z1-web dot de
Operating system: Windows 10 / XAMPP
PHP version: 7.0.15
Package: *Graphics related
Bug Type: Bug
Bug description:imagefilledarc
Description:
------------
The pie chart is displayed incorrectly with angle 90 degrees:
(big gaps between the cake pieces)
imagefilledarc($img, 155, 63, 150, 75, 1, 90, $blue, IMG_ARC_PIE);
imagefilledarc($img, 155, 63, 150, 75, 90, 360, $green, IMG_ARC_PIE);
With other angle like 120 degrees there are no problems:
imagefilledarc($img, 155, 63, 150, 75, 1, 120, $blue, IMG_ARC_PIE);
imagefilledarc($img, 155, 63, 150, 75, 120, 360, $green, IMG_ARC_PIE);
Test script:
---------------
<?php
$img = imagecreatetruecolor(440, 123);
$blue = imagecolorallocate($img, 80, 108, 255);
$green = imagecolorallocate($img, 48, 217, 26);
imagefill($img, 0, 0, $white);
imagefilledarc($img, 155, 63, 150, 75, 1, 90, $blue, IMG_ARC_PIE);
imagefilledarc($img, 155, 63, 150, 75, 90, 360, $green, IMG_ARC_PIE);
header('Content-type: image/png');
imagepng($img);
imagedestroy($img);
?>
--
Edit bug report at https://bugs.php.net/bug.php?id=74001&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=74001&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=74001&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=74001&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=74001&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=74001&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=74001&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=74001&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=74001&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=74001&r=support
Expected behavior: https://bugs.php.net/fix.php?id=74001&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=74001&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=74001&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=74001&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=74001&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=74001&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=74001&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=74001&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=74001&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=74001&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=74001&r=mysqlcfg