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.c305 mimetype = SG(default_mimetype); in get_default_content_type()
371 if (*mimetype != NULL) { in sapi_apply_default_charset()
372 if (*charset && strncmp(*mimetype, "text/", 5) == 0 && strstr(*mimetype, "charset=") == NULL) { in sapi_apply_default_charset()
378 efree(*mimetype); in sapi_apply_default_charset()
379 *mimetype = newtype; in sapi_apply_default_charset()
397 SG(sapi_headers).mimetype = NULL; in sapi_activate_headers_only()
439 SG(sapi_headers).mimetype = NULL; in sapi_activate()
538 if (SG(sapi_headers).mimetype) { in sapi_deactivate_destroy()
784 mimetype = estrdup(ptr); in sapi_header_op()
787 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.c301 char *s, *content_type, *mimetype = NULL; in php_iconv_output_handler() local
310 if (SG(sapi_headers).mimetype && !strncasecmp(SG(sapi_headers).mimetype, "text/", 5)) { in php_iconv_output_handler()
311 if ((s = strchr(SG(sapi_headers).mimetype,';')) == NULL){ in php_iconv_output_handler()
312 mimetype = SG(sapi_headers).mimetype; in php_iconv_output_handler()
314 mimetype = SG(sapi_headers).mimetype; in php_iconv_output_handler()
315 mimetype_len = (int)(s - SG(sapi_headers).mimetype); in php_iconv_output_handler()
318 mimetype = SG(default_mimetype) ? SG(default_mimetype) : SAPI_DEFAULT_MIMETYPE; in php_iconv_output_handler()
321 …if (mimetype != NULL && (!(output_context->op & PHP_OUTPUT_HANDLER_CLEAN) || ((output_context->op … in php_iconv_output_handler()
326 …pe:%.*s; charset=%.*s", mimetype_len ? mimetype_len : (int) strlen(mimetype), mimetype, (int) (p -… in php_iconv_output_handler()
328 …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.c1572 char *mimetype = NULL; in PHP_FUNCTION() local
1575 …api_headers).mimetype && _php_mb_match_regex(MBSTRG(http_output_conv_mimetypes), SG(sapi_headers). in PHP_FUNCTION()
1577 if ((s = strchr(SG(sapi_headers).mimetype, ';')) == NULL) { in PHP_FUNCTION()
1578 mimetype = estrdup(SG(sapi_headers).mimetype); in PHP_FUNCTION()
1580 mimetype = estrndup(SG(sapi_headers).mimetype, s - SG(sapi_headers).mimetype); in PHP_FUNCTION()
1584 mimetype = SG(default_mimetype) ? SG(default_mimetype) : SAPI_DEFAULT_MIMETYPE; in PHP_FUNCTION()
1592 size_t len = spprintf(&p, 0, "Content-Type: %s; charset=%s", mimetype, charset); in PHP_FUNCTION()
1602 efree(mimetype); in PHP_FUNCTION()
/php-src/sapi/phpdbg/
H A Dphpdbg.c1440 if (SG(sapi_headers).mimetype) { in main()
1441 efree(SG(sapi_headers).mimetype); in main()
1442 SG(sapi_headers).mimetype = NULL; in main()
/php-src/ext/phar/
H A Dphar.c3350 #define PHAR_SET_MIME(mimetype, ret, fileext) \ in PHP_GINIT_FUNCTION() argument
3351 mime.mime = mimetype; \ in PHP_GINIT_FUNCTION()
3352 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-development716 ; https://php.net/default-mimetype
H A Dphp.ini-production718 ; https://php.net/default-mimetype

Completed in 183 milliseconds