[php-src] PHP-8.6: UPGRADING: Note the TrueType font MIME type change in fileinfo (#25073)
| From: | Dhrupo Nil via Weilin Du | Date: | Tue, 10 Nov 2026 08:38:10 +0000 |
| Subject: | [php-src] PHP-8.6: UPGRADING: Note the TrueType font MIME type change in fileinfo (#25073) | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-143523@lists.php.net to get a copy of this message | ||
Author: Dhrupo Nil (dhrupo)
Committer: Weilin Du (LamentXU123)
Date: 2026-11-10T16:35:44+08:00
Commit: https://github.com/php/php-src/commit/dea5c2fc8396d2e17d256ed3f40af3b068195631
Raw diff: https://github.com/php/php-src/commit/dea5c2fc8396d2e17d256ed3f40af3b068195631.diff
UPGRADING: Note the TrueType font MIME type change in fileinfo (#25073)
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
Changed paths:
M UPGRADING
Diff:
diff --git a/UPGRADING b/UPGRADING
index eed6864abb49..3fe0fe111638 100644
--- a/UPGRADING
+++ b/UPGRADING
@@ -966,6 +966,7 @@ PHP 8.6 UPGRADE NOTES
- Fileinfo:
. Upgraded to file 5.48.
Custom compiled magic databases from older file versions must be regenerated.
+ . TrueType fonts are now detected as font/ttf instead of font/sfnt.
- Hash:
. The bundled version of xxHash was upgraded to 0.8.2.