From: [EMAIL PROTECTED] Operating system: Linux 2.6.25-gentoo-r6 PHP version: 5.2.6 PHP Bug Type: GD related Bug description: Full circle drawn instead of arc with very small angle
Description: ------------ Instead of a very small arc slice, a full circle is drawn when calling imagefilledarc with very small angles. Reproduce code: --------------- <?php $image = imagecreatetruecolor( 200, 200 ); $bgColor = imagecolorallocatealpha( $image, 255, 255, 255, 127 ); imagealphablending( $image, true ); imagesavealpha( $image, true ); imagefill( $image, 1, 1, $bgColor ); $drawColor = imagecolorallocate( $image, 0, 0, 200 ); imagefilledarc( $image, 100, 100, 100, 100, 30, 30.1, $drawColor, IMG_ARC_PIE ); imagepng( $image, 'imagefilledarc_test.png' ); ?> Expected result: ---------------- An image with a very small arc slice. Actual result: -------------- A full circle, like: http://k023.de/imagefilledarc_test.png -- Edit bug report at http://bugs.php.net/?id=45552&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=45552&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=45552&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=45552&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=45552&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=45552&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=45552&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=45552&r=needscript Try newer version: http://bugs.php.net/fix.php?id=45552&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=45552&r=support Expected behavior: http://bugs.php.net/fix.php?id=45552&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=45552&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=45552&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=45552&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=45552&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=45552&r=dst IIS Stability: http://bugs.php.net/fix.php?id=45552&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=45552&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=45552&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=45552&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=45552&r=mysqlcfg