nlopess Fri Sep 15 16:11:39 2006 UTC Modified files: (Branch: PHP_5_2) /php-src/ext/gd/libgd gdft.c Log: fix a valgrind warning. this also provides a 5x speedup in the imagefttext.phpt test, because without this patch it never got cache hits http://cvs.php.net/viewvc.cgi/php-src/ext/gd/libgd/gdft.c?r1=1.36.4.1&r2=1.36.4.2&diff_format=u Index: php-src/ext/gd/libgd/gdft.c diff -u php-src/ext/gd/libgd/gdft.c:1.36.4.1 php-src/ext/gd/libgd/gdft.c:1.36.4.2 --- php-src/ext/gd/libgd/gdft.c:1.36.4.1 Wed Aug 23 20:22:31 2006 +++ php-src/ext/gd/libgd/gdft.c Fri Sep 15 16:11:39 2006 @@ -534,7 +534,7 @@ pixel = a->pixel = b->pixel; bg = a->bgcolor = b->bgcolor; fg = a->fgcolor = b->fgcolor; - im = b->im; + im = a->im = b->im; /* if fg is specified by a negative color idx, then don't antialias */ if (fg < 0) {
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php