From:             nicosinus33 at yahoo dot fr
Operating system: Windows 2003 Server
PHP version:      5.2.4
PHP Bug Type:     GD related
Bug description:  imagefilledarc(...) don't draw same ellipse as in previous 
version of PHP 

Description:
------------
The function imagefilledarc(...) is used to draw partial ellipse.
In PHP 5.2.3, when the arc start angle is the same that the arc end angle,
the function draws an empty ellipse.

In the same condition, but using PHP5.2.4, the function draws a full
ellipse.


Reproduce code:
---------------
<?php

// create image
$image = imagecreatetruecolor(100, 100);

// allocate some solors
$red = imagecolorallocate($image, 0xFF, 0x00, 0x00);


//draw the ellipse
imagefilledarc($image, 50, 50, 100, 50, 75, 75 , $red, IMG_ARC_PIE);


// flush image
header('Content-type: image/png');
imagepng($image);
imagedestroy($image);
?> 


Expected result:
----------------
Like in PHP 5.2.3,  the code must draw nothing (an empty ellipse) 

Actual result:
--------------
The code draws a red ellipse.

-- 
Edit bug report at http://bugs.php.net/?id=42843&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=42843&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=42843&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=42843&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=42843&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=42843&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=42843&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=42843&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=42843&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=42843&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=42843&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=42843&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=42843&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=42843&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=42843&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=42843&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=42843&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=42843&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=42843&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=42843&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=42843&r=mysqlcfg

Reply via email to