Skip to content

[codex] fix php freetype paths#2

Merged
Aoody743 merged 1 commit into
mainfrom
codex/php-gd-freetype-fix
Apr 17, 2026
Merged

[codex] fix php freetype paths#2
Aoody743 merged 1 commit into
mainfrom
codex/php-gd-freetype-fix

Conversation

@Aoody743

Copy link
Copy Markdown
Owner

What changed

  • Unified old PHP GD builds to always resolve a usable freetype directory instead of skipping it when pkg-config can see freetype2.
  • Fixed the old PHP 5.2-5.7 install scripts so their Darwin freetype path matches the freetype_old build they rely on.
  • Updated the PHP 5.2 GD extension installer to use the same fallback logic as the shared old-GD path.

Why

  • On clean Debian 12 installs, PHP 5.6 could build GD without freetype support, which breaks captcha image rendering.
  • Some older install scripts also pointed at lib/freetype while building or installing freetype_old, which made the old toolchain inconsistent.

Validation

  • Ran bash -n on every modified shell script.

@Aoody743 Aoody743 marked this pull request as ready for review April 17, 2026 07:01
@Aoody743 Aoody743 merged commit 457a6b9 into main Apr 17, 2026
1 check failed
@Aoody743 Aoody743 deleted the codex/php-gd-freetype-fix branch April 17, 2026 07:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant