Fix #77943: imageantialias($image, false); does not work
authorChristoph M. Becker <cmbecker69@gmx.de>
Mon, 29 Apr 2019 14:14:26 +0000 (16:14 +0200)
committerChristoph M. Becker <cmbecker69@gmx.de>
Mon, 29 Apr 2019 14:16:46 +0000 (16:16 +0200)
commitcd94cf60a2379ccfe4619b1b9384a68b3e7a1205
treece643bc93861c0f0ffc5ae40441c8a13eb49a233
parent9bf11045db09d87020c66c21e0a4df30f63c415d
Fix #77943: imageantialias($image, false); does not work

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.
NEWS
ext/gd/gd.c
ext/gd/tests/bug77943.phpt [new file with mode: 0644]
ext/gd/tests/bug77943.png [new file with mode: 0644]