php-src/ext/gd
Christoph M. Becker c696bc8cfa Fix test_image_equals_file() wrt. palette images
The recently introduced test_image_equals_file() doesn't properly work for
palette images, because in this case only the palette indexes are compared,
what can lead to false positives and negatives as shown in the added test.

To fix that we convert palette images to truecolor, what is supposed to be
faster than calling imagecolorsforindex() for each pixel.

We furthermore rely on PHP's refcounting to free unused images; after all,
this is not C.
2016-09-25 10:34:03 +02:00
..
libgd Fix #73161: imagecreatefromgd2() may leak memory 2016-09-24 12:36:54 +02:00
tests Fix test_image_equals_file() wrt. palette images 2016-09-25 10:34:03 +02:00
config.m4 Fix bug #68656 Report gd library version 2014-12-26 08:33:21 +01:00
config.w32 backport gd config.w32 to support freetype 2.5 2015-02-12 20:27:48 +01:00
CREDITS
gd_compat.c This seems better 2015-11-20 15:36:13 +08:00
gd_compat.h Revert removal of overflow2 use in gd.c 2013-05-06 10:00:45 +02:00
gd_ctx.c Happy new year (Update copyright to 2016) 2016-01-01 19:21:47 +02:00
gd.c Fix #73157 (again): imagegd2() ignores 3rd param if 4 are given 2016-09-24 00:35:24 +02:00
gd.dsp revert change #298288: Remove old dsp/dsw/makefile files 2010-04-28 14:41:51 +00:00
gdcache.c Required GD >= 2.1.0 or GD bundled, this allows us to remove most of the #ifdef 2013-05-04 16:50:06 +02:00
gdcache.h Last bit of CS fixes. 2003-12-28 21:08:46 +00:00
php_gd.h Happy new year (Update copyright to 2016) 2016-01-01 19:21:47 +02:00