Home
last modified time | relevance | path

Searched refs:mimetype (Results 1 – 15 of 15) sorted by relevance

/php-src/sapi/cli/tests/
H A Dbug61977.phpt18 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-src/main/
H A DSAPI.c307 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()
537 if (SG(sapi_headers).mimetype) { in sapi_deactivate_destroy()
783 mimetype = estrdup(ptr); in sapi_header_op()
786 SG(sapi_headers).mimetype = estrdup(mimetype); in sapi_header_op()
[all …]
H A DSAPI.h54 char *mimetype; member
225 SAPI_API size_t sapi_apply_default_charset(char **mimetype, size_t len);
/php-src/ext/zip/tests/
H A Dbug7658.phpt8 "mimetype",
/php-src/ext/iconv/
H A Diconv.c302 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-src/ext/fileinfo/libmagic/
H A Dapprentice.c1122 if (*ml->magic[mimeindex].mimetype == '\0' in apprentice_list()
1123 && *ml->magic[mi].mimetype) in apprentice_list()
1131 ml->magic[mimeindex].mimetype); in apprentice_list()
1371 me[i].mp->mimetype, in set_text_binary()
1372 me[i].mp->mimetype[0] == '\0' ? "" : "; ", in set_text_binary()
2371 m->mimetype[0] = '\0'; /* initialise MIME type to none */ in parse()
2531 CAST(off_t, offsetof(struct magic, mimetype)), in parse_mime()
2532 sizeof(me->mp[0].mimetype), "MIME", "+-/.$?:{}", 1); in parse_mime()
H A Dfile.h364 char mimetype[MAXMIME]; /* MIME type */ member
H A Dsoftmagic.c2489 if ((ms->flags & MAGIC_MIME_TYPE) && m->mimetype[0]) { in handle_annotation()
2494 if (varexpand(ms, buf, sizeof(buf), m->mimetype) == -1) in handle_annotation()
2495 p = m->mimetype; in handle_annotation()
/php-src/ext/mbstring/
H A Dmbstring.c1567 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-src/sapi/phpdbg/
H A Dphpdbg.c1438 if (SG(sapi_headers).mimetype) { in main()
1439 efree(SG(sapi_headers).mimetype); in main()
1440 SG(sapi_headers).mimetype = NULL; in main()
/php-src/ext/phar/
H A Dphar.c3393 #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-src/ext/fileinfo/tests/
H A Dmagic私はガラスを食べられます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 Dmagic1109 # 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-src/
H A Dphp.ini-development725 ; https://php.net/default-mimetype
H A Dphp.ini-production727 ; https://php.net/default-mimetype

Completed in 252 milliseconds