Bug #73614 [NEW]: Wrong draws filled arcs.
| From: | vrp76 at mail dot ru | Date: | Sun, 27 Nov 2016 08:15:27 +0000 |
| Subject: | Bug #73614 [NEW]: Wrong draws filled arcs. | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-205659@lists.php.net to get a copy of this message | ||
From: vrp76 at mail dot ru
Operating system: Windows Vista HomePremium 32 SP2
PHP version: 7.0.13
Package: GD related
Bug Type: Bug
Bug description:Wrong draws filled arcs.
Description:
------------
Wrong draws filled arcs.
Test script:
---------------
<?php
$image = imagecreatetruecolor(500, 500);
$white = imagecolorallocate($image, 0xFF, 0xFF, 0xFF);
$navy = imagecolorallocate($image, 0x00, 0x00, 0x80);
$red = imagecolorallocate($image, 0xFF, 0x00, 0x00);
imagefilledarc($image, 250, 250, 500, 250, 0, 88, $white,
IMG_ARC_PIE);
imagefilledarc($image, 250, 250, 500, 250, 88, 91 , $navy,
IMG_ARC_PIE);
imagefilledarc($image, 250, 250, 500, 250, 91, 360 , $red,
IMG_ARC_PIE);
header('Content-type: image/png');
imagepng($image);
imagedestroy($image);
?>
Expected result:
----------------
https://www.dropbox.com/s/s1pby0zutsajbed/Pie1.png?dl=0
Actual result:
--------------
https://www.dropbox.com/s/68l645wakutl3n0/Pie2.png?dl=0
--
Edit bug report at https://bugs.php.net/bug.php?id=73614&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=73614&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=73614&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=73614&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=73614&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=73614&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=73614&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=73614&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=73614&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=73614&r=support
Expected behavior: https://bugs.php.net/fix.php?id=73614&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=73614&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=73614&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=73614&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=73614&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=73614&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=73614&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=73614&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=73614&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=73614&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=73614&r=mysqlcfg