Bug #81315 [NEW]: imagefilledellipse - draws strange shape in large size

From: Date: Fri, 30 Jul 2021 18:00:01 +0000
Subject: Bug #81315 [NEW]: imagefilledellipse - draws strange shape in large size
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-235491@lists.php.net to get a copy of this message
From: chzhdy at live dot com Operating system: Windows 10 21H1 PHP version: 8.0.9 Package: GD related Bug Type: Bug Bug description:imagefilledellipse - draws strange shape in large size Description: ------------ When the size of ellipse is larger than about 2200px, imagefilledellipse() will start to draw a strange shape. It seems that the problem only happens to "PHP for Windows", because the script works well on my Ubuntu Server. [PHP Version] PHP 8.0 (8.0.9) for Windows - VS16 x64 Non Thread Safe (2021-Jul-29 14:38:16) Test script: --------------- $w = 3000; $h = 3000; $im = imagecreatetruecolor($w, $h); $color = imagecolorallocate($im, 0, 124, 255); imagefilledellipse($im, $w / 2, $h / 2, $w, $h, $color); header('content-type: image/png'); imagepng($im); Expected result: ---------------- imagefilledellipse() can draw an ellipse while the size is large. Actual result: -------------- imagefilledellipse() draws a strange shape. -- Edit bug report at https://bugs.php.net/bug.php?id=81315&edit=1 -- Fix committed: https://bugs.php.net/fix.php?id=81315&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=81315&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=81315&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=81315&r=needscript Try newer version: https://bugs.php.net/fix.php?id=81315&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=81315&r=support Expected behavior: https://bugs.php.net/fix.php?id=81315&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=81315&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=81315&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=81315&r=globals PHP version support discontinued: https://bugs.php.net/fix.php?id=81315&r=phptooold Daylight Savings: https://bugs.php.net/fix.php?id=81315&r=dst IIS Stability: https://bugs.php.net/fix.php?id=81315&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=81315&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=81315&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=81315&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=81315&r=mysqlcfg

« previous php.bugs (#235491) next »