Skip to content

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

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

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
Contributor

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.
LamentXU123 added a commit that referenced this pull request Nov 10, 2026
* PHP-8.6:
  UPGRADING: Note the TrueType font MIME type change in fileinfo (#25073)
@LamentXU123

Copy link
Copy Markdown
Member

Thank you!

mbeccati pushed a commit that referenced this pull request Nov 10, 2026
Following the file 5.48 update and the fix in GH-25063, fileinfo reports
TrueType fonts as font/ttf rather than the font/sfnt used in PHP 8.5
and earlier.

Document this in the PHP 8.6 upgrade notes so applications with MIME
type allow-lists, including WordPress font uploads, can account for
the changed value.

Closes #25073
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.

2 participants