cvs: php-src(PHP_5_2) / NEWS /ext/gd/libgd gd.c
| From: | Pierre-Alain Joye | Date: | Sat, 14 Apr 2007 17:33:15 +0000 |
| Subject: | cvs: php-src(PHP_5_2) / NEWS /ext/gd/libgd gd.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-43883@lists.php.net to get a copy of this message | ||
pajoye Sat Apr 14 17:33:15 2007 UTC
Modified files: (Branch: PHP_5_2)
/php-src NEWS
/php-src/ext/gd/libgd gd.c
Log:
- MFH: libgd #74, gdImageFilledArc, huge CPU usage with large angles
http://cvs.php.net/viewvc.cgi/php-src/NEWS?r1=1.2027.2.547.2.647&r2=1.2027.2.547.2.648&diff_format=u
Index: php-src/NEWS
diff -u php-src/NEWS:1.2027.2.547.2.647 php-src/NEWS:1.2027.2.547.2.648
--- php-src/NEWS:1.2027.2.547.2.647 Sat Apr 14 10:19:19 2007
+++ php-src/NEWS Sat Apr 14 17:33:15 2007
@@ -27,8 +27,10 @@
colors (Rob Leslie)
. Improved thread safety of the gif support (Roman Nemecek, Nuno, Pierre)
. Use the dimension of the GIF frame to create the destination image (Pierre)
- . Load only once the local color map (Pierre)
+ . Load only once the local color map from a GIF data (Pierre)
. Improved thread safety of the freetype cache (Scott MacVicar, Nuno, Pierre)
+ . imagearc huge CPU usage with large angles (Pierre)
+
- Upgraded libraries bundled in the Windows distribution. (Edin)
. c-client (imap) to version 2006e
. libpq (PostgreSQL) to version 8.2.3
http://cvs.php.net/viewvc.cgi/php-src/ext/gd/libgd/gd.c?r1=1.90.2.1.2.10&r2=1.90.2.1.2.11&diff_format=u
Index: php-src/ext/gd/libgd/gd.c
diff -u php-src/ext/gd/libgd/gd.c:1.90.2.1.2.10 php-src/ext/gd/libgd/gd.c:1.90.2.1.2.11
--- php-src/ext/gd/libgd/gd.c:1.90.2.1.2.10 Fri Mar 9 01:18:40 2007
+++ php-src/ext/gd/libgd/gd.c Sat Apr 14 17:33:15 2007
@@ -1645,6 +1645,14 @@
int lx = 0, ly = 0;
int fx = 0, fy = 0;
+ if (s > 360) {
+ s = s % 360;
+ }
+
+ if (e > 360) {
+ e = e % 360;
+ }
+
while (s<0) {
s += 360;
}