mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Update mime-db from 1.45.0 to 1.52.0
Updates the the mime types supported by the built-in PHP server to match the mime types available from upstream `mime-db` database. This updates the `mime-db` version from `v1.45.0` (released in 2020 Sep) to `v1.52.0` (latest, released in 2022 Feb), and syncs the mime types by running the mime type ingestion script.
This commit is contained in:
committed by
David Carlier
parent
5174ee2353
commit
d3c86527a5
3
NEWS
3
NEWS
@@ -2,6 +2,9 @@ PHP NEWS
|
||||
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||
?? ??? ????, PHP 8.2.0beta1
|
||||
|
||||
- CLI:
|
||||
- Updated the mime-type table for the builtin-server. (Ayesh Karunaratne)
|
||||
|
||||
- FPM:
|
||||
- Added listen.setfib pool option to set route FIB on FreeBSD. (David Carlier)
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
// Check if we are being given a mime.types file or if we should use the
|
||||
// default URL.
|
||||
$source = count($argv) > 1 ? $argv[1] : 'https://cdn.jsdelivr.net/gh/jshttp/mime-db@v1.45.0/db.json';
|
||||
$source = count($argv) > 1 ? $argv[1] : 'https://cdn.jsdelivr.net/gh/jshttp/mime-db@v1.52.0/db.json';
|
||||
|
||||
// See if we can actually load it.
|
||||
$data = @file_get_contents($source);
|
||||
|
||||
@@ -49,6 +49,7 @@ static const php_cli_server_ext_mime_type_pair mime_type_map[] = {
|
||||
{ "aep", "application/vnd.audiograph" },
|
||||
{ "afm", "application/x-font-type1" },
|
||||
{ "afp", "application/vnd.ibm.modcap" },
|
||||
{ "age", "application/vnd.age" },
|
||||
{ "ahead", "application/vnd.ahead.space" },
|
||||
{ "ai", "application/postscript" },
|
||||
{ "aif", "audio/x-aiff" },
|
||||
@@ -57,6 +58,7 @@ static const php_cli_server_ext_mime_type_pair mime_type_map[] = {
|
||||
{ "air", "application/vnd.adobe.air-application-installer-package+zip" },
|
||||
{ "ait", "application/vnd.dvb.ait" },
|
||||
{ "ami", "application/vnd.amiga.ami" },
|
||||
{ "amr", "audio/amr" },
|
||||
{ "apk", "application/vnd.android.package-archive" },
|
||||
{ "apng", "image/apng" },
|
||||
{ "appcache", "text/cache-manifest" },
|
||||
@@ -64,7 +66,7 @@ static const php_cli_server_ext_mime_type_pair mime_type_map[] = {
|
||||
{ "apr", "application/vnd.lotus-approach" },
|
||||
{ "arc", "application/x-freearc" },
|
||||
{ "arj", "application/x-arj" },
|
||||
{ "asc", "application/pgp-signature" },
|
||||
{ "asc", "application/pgp-keys" },
|
||||
{ "asf", "video/x-ms-asf" },
|
||||
{ "asm", "text/x-asm" },
|
||||
{ "aso", "application/vnd.accpac.simply.aso" },
|
||||
@@ -76,6 +78,8 @@ static const php_cli_server_ext_mime_type_pair mime_type_map[] = {
|
||||
{ "atomsvc", "application/atomsvc+xml" },
|
||||
{ "atx", "application/vnd.antix.game-component" },
|
||||
{ "au", "audio/basic" },
|
||||
{ "avci", "image/avci" },
|
||||
{ "avcs", "image/avcs" },
|
||||
{ "avi", "video/x-msvideo" },
|
||||
{ "avif", "image/avif" },
|
||||
{ "aw", "application/applixware" },
|
||||
@@ -168,6 +172,7 @@ static const php_cli_server_ext_mime_type_pair mime_type_map[] = {
|
||||
{ "com", "application/x-msdownload" },
|
||||
{ "conf", "text/plain" },
|
||||
{ "cpio", "application/x-cpio" },
|
||||
{ "cpl", "application/cpl+xml" },
|
||||
{ "cpp", "text/x-c" },
|
||||
{ "cpt", "application/mac-compactpro" },
|
||||
{ "crd", "application/x-mscardfile" },
|
||||
@@ -273,6 +278,7 @@ static const php_cli_server_ext_mime_type_pair mime_type_map[] = {
|
||||
{ "evy", "application/x-envoy" },
|
||||
{ "exe", "application/x-msdos-program" },
|
||||
{ "exi", "application/exi" },
|
||||
{ "exp", "application/express" },
|
||||
{ "exr", "image/aces" },
|
||||
{ "ext", "application/vnd.novadigm.ext" },
|
||||
{ "ez", "application/andrew-inset" },
|
||||
@@ -327,6 +333,7 @@ static const php_cli_server_ext_mime_type_pair mime_type_map[] = {
|
||||
{ "gca", "application/x-gca-compressed" },
|
||||
{ "gdl", "model/vnd.gdl" },
|
||||
{ "gdoc", "application/vnd.google-apps.document" },
|
||||
{ "ged", "text/vnd.familysearch.gedcom" },
|
||||
{ "geo", "application/vnd.dynageo" },
|
||||
{ "geojson", "application/geo+json" },
|
||||
{ "gex", "application/vnd.geometry-explorer" },
|
||||
@@ -516,6 +523,7 @@ static const php_cli_server_ext_mime_type_pair mime_type_map[] = {
|
||||
{ "m3u8", "application/vnd.apple.mpegurl" },
|
||||
{ "m4a", "audio/mp4" },
|
||||
{ "m4p", "application/mp4" },
|
||||
{ "m4s", "video/iso.segment" },
|
||||
{ "m4u", "video/vnd.mpegurl" },
|
||||
{ "m4v", "video/x-m4v" },
|
||||
{ "ma", "application/mathematica" },
|
||||
@@ -584,13 +592,14 @@ static const php_cli_server_ext_mime_type_pair mime_type_map[] = {
|
||||
{ "mpd", "application/dash+xml" },
|
||||
{ "mpe", "video/mpeg" },
|
||||
{ "mpeg", "video/mpeg" },
|
||||
{ "mpf", "application/media-policy-dataset+xml" },
|
||||
{ "mpg", "video/mpeg" },
|
||||
{ "mpg4", "video/mp4" },
|
||||
{ "mpga", "audio/mpeg" },
|
||||
{ "mpkg", "application/vnd.apple.installer+xml" },
|
||||
{ "mpm", "application/vnd.blueice.multipass" },
|
||||
{ "mpn", "application/vnd.mophun.application" },
|
||||
{ "mpp", "application/vnd.ms-project" },
|
||||
{ "mpp", "application/dash-patch+xml" },
|
||||
{ "mpt", "application/vnd.ms-project" },
|
||||
{ "mpy", "application/vnd.ibm.minipay" },
|
||||
{ "mqy", "application/vnd.mobius.mqy" },
|
||||
@@ -614,6 +623,7 @@ static const php_cli_server_ext_mime_type_pair mime_type_map[] = {
|
||||
{ "musd", "application/mmt-usd+xml" },
|
||||
{ "musicxml", "application/vnd.recordare.musicxml+xml" },
|
||||
{ "mvb", "application/x-msmediaview" },
|
||||
{ "mvt", "application/vnd.mapbox-vector-tile" },
|
||||
{ "mwf", "application/vnd.mfer" },
|
||||
{ "mxf", "application/mxf" },
|
||||
{ "mxl", "application/vnd.recordare.musicxml" },
|
||||
@@ -673,6 +683,7 @@ static const php_cli_server_ext_mime_type_pair mime_type_map[] = {
|
||||
{ "opf", "application/oebps-package+xml" },
|
||||
{ "opml", "text/x-opml" },
|
||||
{ "oprc", "application/vnd.palm" },
|
||||
{ "opus", "audio/ogg" },
|
||||
{ "org", "application/vnd.lotus-organizer" },
|
||||
{ "osf", "application/vnd.yamaha.openscoreformat" },
|
||||
{ "osfpvg", "application/vnd.yamaha.openscoreformat.osfpvg+xml" },
|
||||
@@ -917,6 +928,9 @@ static const php_cli_server_ext_mime_type_pair mime_type_map[] = {
|
||||
{ "sti", "application/vnd.sun.xml.impress.template" },
|
||||
{ "stk", "application/hyperstudio" },
|
||||
{ "stl", "model/stl" },
|
||||
{ "stpx", "model/step+xml" },
|
||||
{ "stpxz", "model/step-xml+zip" },
|
||||
{ "stpz", "model/step+zip" },
|
||||
{ "str", "application/vnd.pg.format" },
|
||||
{ "stw", "application/vnd.sun.xml.writer.template" },
|
||||
{ "styl", "text/stylus" },
|
||||
@@ -972,6 +986,7 @@ static const php_cli_server_ext_mime_type_pair mime_type_map[] = {
|
||||
{ "tpt", "application/vnd.trid.tpt" },
|
||||
{ "tr", "text/troff" },
|
||||
{ "tra", "application/vnd.trueapp" },
|
||||
{ "trig", "application/trig" },
|
||||
{ "trm", "application/x-msterminal" },
|
||||
{ "ts", "video/mp2t" },
|
||||
{ "tsd", "application/timestamped-data" },
|
||||
@@ -1042,6 +1057,7 @@ static const php_cli_server_ext_mime_type_pair mime_type_map[] = {
|
||||
{ "vcs", "text/x-vcalendar" },
|
||||
{ "vcx", "application/vnd.vcx" },
|
||||
{ "vdi", "application/x-virtualbox-vdi" },
|
||||
{ "vds", "model/vnd.sap.vds" },
|
||||
{ "vhd", "application/x-virtualbox-vhd" },
|
||||
{ "vis", "application/vnd.visionary" },
|
||||
{ "viv", "video/vnd.vivo" },
|
||||
@@ -1079,6 +1095,7 @@ static const php_cli_server_ext_mime_type_pair mime_type_map[] = {
|
||||
{ "webp", "image/webp" },
|
||||
{ "wg", "application/vnd.pmi.widget" },
|
||||
{ "wgt", "application/widget" },
|
||||
{ "wif", "application/watcherinfo+xml" },
|
||||
{ "wks", "application/vnd.ms-works" },
|
||||
{ "wm", "video/x-ms-wm" },
|
||||
{ "wma", "audio/x-ms-wma" },
|
||||
@@ -1122,7 +1139,7 @@ static const php_cli_server_ext_mime_type_pair mime_type_map[] = {
|
||||
{ "xbm", "image/x-xbitmap" },
|
||||
{ "xca", "application/xcap-caps+xml" },
|
||||
{ "xcs", "application/calendar+xml" },
|
||||
{ "xdf", "application/mrb-consumer+xml" },
|
||||
{ "xdf", "application/xcap-diff+xml" },
|
||||
{ "xdm", "application/vnd.syncml.dm+xml" },
|
||||
{ "xdp", "application/vnd.adobe.xdp+xml" },
|
||||
{ "xdssc", "application/dssc+xml" },
|
||||
|
||||
Reference in New Issue
Block a user