ID:               43010
 Updated by:       [EMAIL PROTECTED]
 Reported By:      johanp at aditus dot nu
 Status:           Open
 Bug Type:         GD related
 Operating System: Linux
 PHP Version:      4.4.7
 Assigned To:      pajoye
 New Comment:

This was fixed in PHP 5.2.4, the regression was only introduced in PHP
5.2.3.

The fix for the regression was never made back to 4.4, I'll try to do
this at the weekend if Pierre doesn't get around to it.


Previous Comments:
------------------------------------------------------------------------

[2007-10-20 09:35:09] johanp at aditus dot nu

This is broken in 5.2.0 as well

------------------------------------------------------------------------

[2007-10-18 08:45:08] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows (zip):
 
  http://snaps.php.net/win32/php5.2-win32-latest.zip

For Windows (installer):

  http://snaps.php.net/win32/php5.2-win32-installer-latest.msi



------------------------------------------------------------------------

[2007-10-17 22:02:36] johanp at aditus dot nu

This is a regression in 4.4.7 since this is working in 4.4.6

------------------------------------------------------------------------

[2007-10-17 21:49:38] johanp at aditus dot nu

Description:
------------
In PHP 4.4.7 imagefilledarc() has a defect filling a full circle when
the start angle is not =0

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

$im = imagecreatetruecolor (600, 400);
$black = imagecolorallocate ($im, 0, 0, 0);
$white = imagecolorallocate ($im, 255, 255, 255);

// The following code should show two white circles. But
// only the left arc is displayed

// 360-arc working. (Start angle=0, End Angle=360) 
imagefilledarc($im,200,200,200,200,0,360,$white,IMG_ARC_PIE);

// 360-arc __NOT__ working. (Start angle=270, End Angle=630) 
imagefilledarc($im,400,200,200,200,270,630,$white,IMG_ARC_PIE);

header ("Content-type: image/png");
imagepng ($im);

?>


Expected result:
----------------
Two white circles on a black canvas

Actual result:
--------------
One white circle on a black canvas


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=43010&edit=1

Reply via email to