[php-src] PR #17324: Split gd_color.c[ch] (sync with upstream)
| From: | cmb69 | Date: | Thu, 02 Jan 2025 16:05:24 +0000 |
| Subject: | [php-src] PR #17324: Split gd_color.c[ch] (sync with upstream) | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-30198@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/17324
Author: cmb69
I have no idea why this has diverged in the first place. [Upstream introduced
gd_color.[ch]](https://github.com/libgd/libgd/commit/b14559beb715a5acfffff3adfd2d55501944efa1)
already in 2008, while [we have cropping
support](https://github.com/php/php-src/commit/a991360344ed5bca7c20f74a10891d0fc52f0c9f) only since
2013. Anyhow, syncing with upstream now is better than never.
The code is the same, except for https://github.com/libgd/libgd/commit/d500229d7a4016f054cc689dfab0ab1177709731,
what I don't understand, since there has been no int division in the first place due to usual
arithmetic conversions, but at least there is not even a minor BC break. (Also note that this
calculation doesn't make much sense, see https://github.com/libgd/libgd/issues/334).
One caveat, though: gd_color.h is now exported (see #16070; need to work on that).