Firstly, we must not call `gdImageSetAntiAliased()` (which sets the
color to anti-alias), but rather modify the `gdImage.AA` flag.
Furthermore, we have to actually use the supplied boolean value.
We also make sure that we don't attempt to enable anti-aliasing for
palette images.
- FPM:
. Fixed bug #77921 (static.php.net doesn't work anymore). (Peter Kokot)
+- GD:
+ . Fixed bug #77943 (imageantialias($image, false); does not work). (cmb)
+
- JSON:
. Fixed bug #77843 (Use after free with json serializer). (Nikita)
if ((im = (gdImagePtr)zend_fetch_resource(Z_RES_P(IM), "Image", le_gd)) == NULL) {
RETURN_FALSE;
}
- gdImageSetAntiAliased(im, 0);
+
+ if (im->trueColor) {
+ im->AA = alias;
+ }
+
RETURN_TRUE;
}
/* }}} */