rasmus Sun Oct 6 03:19:08 2002 EDT Modified files: /php4/ext/gd/libgd gd_topal.c Log: Ok, perhaps it's too late at night, but I see absolutely no reason for this chunk of code here. Why is it writing a palette.map file to disk in the middle of this function? Looks like leftover debug code, and this particular code seems to be crashing on OSX as per bug #19704. Index: php4/ext/gd/libgd/gd_topal.c diff -u php4/ext/gd/libgd/gd_topal.c:1.5 php4/ext/gd/libgd/gd_topal.c:1.6 --- php4/ext/gd/libgd/gd_topal.c:1.5 Thu Aug 22 12:21:32 2002 +++ php4/ext/gd/libgd/gd_topal.c Sun Oct 6 03:19:07 2002 @@ -1560,6 +1560,7 @@ prescan_quantize (im, cquantize); select_colors (im, cquantize, 256); /* TBB HACK REMOVE */ +#if 0 { FILE *out = fopen ("palettemap.png", "wb"); int i; @@ -1575,6 +1576,7 @@ fclose (out); gdImageDestroy (im2); } +#endif zeroHistogram (cquantize->histogram); if (dither) {
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php