Searched refs:mimetype (Results 1 – 15 of 15) sorted by relevance
/PHP-8.3/sapi/cli/tests/ |
H A D | bug61977.phpt | 18 foreach ($mimetypes as $mimetype) { 22 file_put_contents($doc_root . "/foo.{$mimetype}", ''); 24 GET /foo.{$mimetype} HTTP/1.1 33 echo "foo.{$mimetype} => ", $text; 36 @unlink($doc_root . "/foo.{$mimetype}");
|
/PHP-8.3/main/ |
H A D | SAPI.c | 305 mimetype = SG(default_mimetype); in get_default_content_type() 373 if (*mimetype != NULL) { in sapi_apply_default_charset() 374 if (*charset && strncmp(*mimetype, "text/", 5) == 0 && strstr(*mimetype, "charset=") == NULL) { in sapi_apply_default_charset() 380 efree(*mimetype); in sapi_apply_default_charset() 381 *mimetype = newtype; in sapi_apply_default_charset() 399 SG(sapi_headers).mimetype = NULL; in sapi_activate_headers_only() 441 SG(sapi_headers).mimetype = NULL; in sapi_activate() 535 if (SG(sapi_headers).mimetype) { in sapi_deactivate_destroy() 781 mimetype = estrdup(ptr); in sapi_header_op() 784 SG(sapi_headers).mimetype = estrdup(mimetype); in sapi_header_op() [all …]
|
H A D | SAPI.h | 54 char *mimetype; member 203 SAPI_API size_t sapi_apply_default_charset(char **mimetype, size_t len);
|
/PHP-8.3/ext/zip/tests/ |
H A D | bug7658.phpt | 8 "mimetype",
|
/PHP-8.3/ext/iconv/ |
H A D | iconv.c | 302 char *s, *content_type, *mimetype = NULL; in php_iconv_output_handler() local 311 if (SG(sapi_headers).mimetype && !strncasecmp(SG(sapi_headers).mimetype, "text/", 5)) { in php_iconv_output_handler() 312 if ((s = strchr(SG(sapi_headers).mimetype,';')) == NULL){ in php_iconv_output_handler() 313 mimetype = SG(sapi_headers).mimetype; in php_iconv_output_handler() 315 mimetype = SG(sapi_headers).mimetype; in php_iconv_output_handler() 316 mimetype_len = (int)(s - SG(sapi_headers).mimetype); in php_iconv_output_handler() 319 mimetype = SG(default_mimetype) ? SG(default_mimetype) : SAPI_DEFAULT_MIMETYPE; in php_iconv_output_handler() 322 …if (mimetype != NULL && (!(output_context->op & PHP_OUTPUT_HANDLER_CLEAN) || ((output_context->op … in php_iconv_output_handler() 327 …pe:%.*s; charset=%.*s", mimetype_len ? mimetype_len : (int) strlen(mimetype), mimetype, (int) (p -… in php_iconv_output_handler() 329 …Type:%.*s; charset=%s", mimetype_len ? mimetype_len : (int) strlen(mimetype), mimetype, get_output… in php_iconv_output_handler()
|
/PHP-8.3/ext/fileinfo/libmagic/ |
H A D | apprentice.c | 1121 if (*ml->magic[mimeindex].mimetype == '\0' in apprentice_list() 1122 && *ml->magic[magindex].mimetype) in apprentice_list() 1130 ml->magic[mimeindex].mimetype); in apprentice_list() 1370 me[i].mp->mimetype, in set_text_binary() 1371 me[i].mp->mimetype[0] == '\0' ? "" : "; ", in set_text_binary() 2370 m->mimetype[0] = '\0'; /* initialise MIME type to none */ in parse() 2523 CAST(off_t, offsetof(struct magic, mimetype)), in parse_mime() 2524 sizeof(me->mp[0].mimetype), "MIME", "+-/.$?:{}", 1); in parse_mime()
|
H A D | file.h | 354 char mimetype[MAXMIME]; /* MIME type */ member
|
H A D | softmagic.c | 2450 if ((ms->flags & MAGIC_MIME_TYPE) && m->mimetype[0]) { in handle_annotation() 2455 if (varexpand(ms, buf, sizeof(buf), m->mimetype) == -1) in handle_annotation() 2456 p = m->mimetype; in handle_annotation()
|
/PHP-8.3/ext/mbstring/ |
H A D | mbstring.c | 1567 char *mimetype = NULL; in PHP_FUNCTION() local 1570 …api_headers).mimetype && _php_mb_match_regex(MBSTRG(http_output_conv_mimetypes), SG(sapi_headers).… in PHP_FUNCTION() 1572 if ((s = strchr(SG(sapi_headers).mimetype, ';')) == NULL) { in PHP_FUNCTION() 1573 mimetype = estrdup(SG(sapi_headers).mimetype); in PHP_FUNCTION() 1575 mimetype = estrndup(SG(sapi_headers).mimetype, s - SG(sapi_headers).mimetype); in PHP_FUNCTION() 1579 mimetype = SG(default_mimetype) ? SG(default_mimetype) : SAPI_DEFAULT_MIMETYPE; in PHP_FUNCTION() 1587 size_t len = spprintf(&p, 0, "Content-Type: %s; charset=%s", mimetype, charset); in PHP_FUNCTION() 1597 efree(mimetype); in PHP_FUNCTION()
|
/PHP-8.3/sapi/phpdbg/ |
H A D | phpdbg.c | 1442 if (SG(sapi_headers).mimetype) { in main() 1443 efree(SG(sapi_headers).mimetype); in main() 1444 SG(sapi_headers).mimetype = NULL; in main()
|
/PHP-8.3/ext/phar/ |
H A D | phar.c | 3393 #define PHAR_SET_MIME(mimetype, ret, fileext) \ in PHP_GINIT_FUNCTION() argument 3394 mime.mime = mimetype; \ in PHP_GINIT_FUNCTION() 3395 mime.len = sizeof((mimetype))+1; \ in PHP_GINIT_FUNCTION()
|
/PHP-8.3/ext/fileinfo/tests/ |
H A D | magic | 1109 # https://reposcope.com/mimetype/video/mpeg 4288 # Catch other ZIP-with-mimetype formats 4293 # (mimetype contains "application/<OTHER>") 4297 # (mimetype contents other than "application/*") 4298 >26 string \x8\0\0\0mimetype 4309 >>26 string !\x8\0\0\0mimetype 18990 # https://reposcope.com/mimetype/image/miff 19044 # https://reposcope.com/mimetype/image/x-xfig 19584 # https://reposcope.com/mimetype/image/x-xpixmap 33905 # https://reposcope.com/mimetype/video/x-msvideo [all …]
|
H A D | magic私はガラスを食べられます | 1109 # https://reposcope.com/mimetype/video/mpeg 4288 # Catch other ZIP-with-mimetype formats 4293 # (mimetype contains "application/<OTHER>") 4297 # (mimetype contents other than "application/*") 4298 >26 string \x8\0\0\0mimetype 4309 >>26 string !\x8\0\0\0mimetype 18990 # https://reposcope.com/mimetype/image/miff 19044 # https://reposcope.com/mimetype/image/x-xfig 19584 # https://reposcope.com/mimetype/image/x-xpixmap 33905 # https://reposcope.com/mimetype/video/x-msvideo [all …]
|
/PHP-8.3/ |
H A D | php.ini-production | 727 ; https://php.net/default-mimetype
|
H A D | php.ini-development | 725 ; https://php.net/default-mimetype
|
Completed in 232 milliseconds