Skip to content

UPGRADING: Note the TrueType font MIME type change in fileinfo - #25073

Open
dhrupo wants to merge 1 commit into
php:PHP-8.6from
dhrupo:upgrading-fileinfo-ttf-mime
Open

dhrupo wants to merge 1 commit into
php:PHP-8.6from
dhrupo:upgrading-fileinfo-ttf-mime

Conversation

@dhrupo

@dhrupo dhrupo commented Oct 31, 2026

Copy link
Copy Markdown

Drafted with an LLM; I reviewed it myself.

Follow-up to #25063: since file 5.48 (with that fix), TrueType fonts are reported as font/ttf, where PHP 8.5 reported font/sfnt. Code that compares against font/sfnt, such as WordPress's font upload allow-list, rejects TTF files on 8.6.

Since file 5.48, with phpGH-25063, TrueType fonts are detected as font/ttf.
PHP 8.5 and earlier reported font/sfnt.
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