pajoye          Mon May 24 16:03:09 2004 EDT

  Modified files:              (Branch: PHP_4_3)
    /php-src    NEWS 
    /php-src/ext/gd/libgd       gd.c 
  Log:
  - MFH: Fix #28506, negative angle returns "random arcs"
    while (s < 0) s += 360 is used now
  
  
http://cvs.php.net/diff.php/php-src/NEWS?r1=1.1247.2.666&r2=1.1247.2.667&ty=u
Index: php-src/NEWS
diff -u php-src/NEWS:1.1247.2.666 php-src/NEWS:1.1247.2.667
--- php-src/NEWS:1.1247.2.666   Mon May 24 13:02:31 2004
+++ php-src/NEWS        Mon May 24 16:03:08 2004
@@ -15,6 +15,8 @@
   and/or HTTP_SESSION_VARS. (Sara)
 - Fixed bug #28508 (Do not make hypot() available if not supported by libc).
   (Ilia)
+- Fixed bug #28506 (Allow negative start angle in imagearc and imagefilledarc.
+  (Pierre)
 - Fixed bug #28386 (wordwrap() wraps lines 1 character too soon). (Ilia)
 - Fixed bug #28374 (Possible unterminated loop inside 
   _php_pgsql_trim_message()). (Ilia)
http://cvs.php.net/diff.php/php-src/ext/gd/libgd/gd.c?r1=1.24.2.31&r2=1.24.2.32&ty=u
Index: php-src/ext/gd/libgd/gd.c
diff -u php-src/ext/gd/libgd/gd.c:1.24.2.31 php-src/ext/gd/libgd/gd.c:1.24.2.32
--- php-src/ext/gd/libgd/gd.c:1.24.2.31 Tue Apr 27 10:59:25 2004
+++ php-src/ext/gd/libgd/gd.c   Mon May 24 16:03:08 2004
@@ -1607,9 +1607,14 @@
        int lx = 0, ly = 0;
        int fx = 0, fy = 0;
 
+       while (s<0) {
+               s += 360;
+       }
+
        while (e < s) {
                e += 360;
        }
+
        for (i = s; i <= e; i++) {
                int x, y;
                x = ((long) gdCosT[i % 360] * (long) w / (2 * 1024)) + cx;

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to