Skip to content

Fix GH-23272: ext/gd fails to build without the iconv extension - #23273

Merged
devnexen merged 1 commit into
php:masterfrom
devnexen:gh23272
Aug 14, 2026
Merged

Fix GH-23272: ext/gd fails to build without the iconv extension#23273
devnexen merged 1 commit into
php:masterfrom
devnexen:gh23272

Conversation

@devnexen

Copy link
Copy Markdown
Member

gdkanji.c includes <iconv.h> only when HAVE_ICONV_H or HAVE_ICONV is set, but HAVE_ICONV_T_DEF was defined whenever <iconv.h> declares the type, dropping its fallback typedef. Detect iconv in gd's own config and define both macros together.

gdkanji.c includes <iconv.h> only when HAVE_ICONV_H or HAVE_ICONV is
set, but HAVE_ICONV_T_DEF was defined whenever <iconv.h> declares the
type, dropping its fallback typedef. Detect iconv in gd's own config
and define both macros together.
@devnexen devnexen linked an issue Aug 14, 2026 that may be closed by this pull request
@devnexen
devnexen merged commit 60a5e88 into php:master Aug 14, 2026
18 checks passed
@devnexen
devnexen deleted the gh23272 branch August 14, 2026 11:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ext/gd: php86beta1-gd fails to compile

1 participant