Home
last modified time | relevance | path

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

/PHP-8.0/sapi/cli/tests/
H A Dbug61977.phpt19 foreach ($mimetypes as $mimetype) {
23 file_put_contents(__DIR__ . "/foo.{$mimetype}", '');
25 GET /foo.{$mimetype} HTTP/1.1
34 echo "foo.{$mimetype} => ", $text;
37 @unlink(__DIR__ . "/foo.{$mimetype}");
/PHP-8.0/main/
H A DSAPI.c299 mimetype = SG(default_mimetype); in get_default_content_type()
367 if (*mimetype != NULL) { in sapi_apply_default_charset()
368 if (*charset && strncmp(*mimetype, "text/", 5) == 0 && strstr(*mimetype, "charset=") == NULL) { in sapi_apply_default_charset()
374 efree(*mimetype); in sapi_apply_default_charset()
375 *mimetype = newtype; in sapi_apply_default_charset()
393 SG(sapi_headers).mimetype = NULL; in sapi_activate_headers_only()
435 SG(sapi_headers).mimetype = NULL; in sapi_activate()
529 if (SG(sapi_headers).mimetype) { in sapi_deactivate_destroy()
775 mimetype = estrdup(ptr); in sapi_header_op()
778 SG(sapi_headers).mimetype = estrdup(mimetype); in sapi_header_op()
[all …]
H A DSAPI.h54 char *mimetype; member
203 SAPI_API size_t sapi_apply_default_charset(char **mimetype, size_t len);
/PHP-8.0/ext/zip/tests/
H A Dbug7658.phpt10 "mimetype",
/PHP-8.0/ext/iconv/
H A Diconv.c294 char *s, *content_type, *mimetype = NULL; in php_iconv_output_handler() local
303 if (SG(sapi_headers).mimetype && !strncasecmp(SG(sapi_headers).mimetype, "text/", 5)) { in php_iconv_output_handler()
304 if ((s = strchr(SG(sapi_headers).mimetype,';')) == NULL){ in php_iconv_output_handler()
305 mimetype = SG(sapi_headers).mimetype; in php_iconv_output_handler()
307 mimetype = SG(sapi_headers).mimetype; in php_iconv_output_handler()
308 mimetype_len = (int)(s - SG(sapi_headers).mimetype); in php_iconv_output_handler()
311 mimetype = SG(default_mimetype) ? SG(default_mimetype) : SAPI_DEFAULT_MIMETYPE; in php_iconv_output_handler()
314 …if (mimetype != NULL && (!(output_context->op & PHP_OUTPUT_HANDLER_CLEAN) || ((output_context->op … in php_iconv_output_handler()
319 …pe:%.*s; charset=%.*s", mimetype_len ? mimetype_len : (int) strlen(mimetype), mimetype, (int) (p -… in php_iconv_output_handler()
321 …Type:%.*s; charset=%s", mimetype_len ? mimetype_len : (int) strlen(mimetype), mimetype, get_output… in php_iconv_output_handler()
/PHP-8.0/ext/mbstring/
H A Dmbstring.c1565 char *s, *mimetype = NULL; in PHP_FUNCTION() local
1588 if (SG(sapi_headers).mimetype && in PHP_FUNCTION()
1591 SG(sapi_headers).mimetype, in PHP_FUNCTION()
1592 strlen(SG(sapi_headers).mimetype))) { in PHP_FUNCTION()
1593 if ((s = strchr(SG(sapi_headers).mimetype,';')) == NULL) { in PHP_FUNCTION()
1594 mimetype = estrdup(SG(sapi_headers).mimetype); in PHP_FUNCTION()
1596 mimetype = estrndup(SG(sapi_headers).mimetype,s-SG(sapi_headers).mimetype); in PHP_FUNCTION()
1600 mimetype = SG(default_mimetype) ? SG(default_mimetype) : SAPI_DEFAULT_MIMETYPE; in PHP_FUNCTION()
1607 len = spprintf( &p, 0, "Content-Type: %s; charset=%s", mimetype, charset ); in PHP_FUNCTION()
1615 efree(mimetype); in PHP_FUNCTION()
/PHP-8.0/ext/fileinfo/libmagic/
H A Dapprentice.c1008 *ml->magic[magindex].mimetype == '\0') in apprentice_list()
1015 ml->magic[magindex].mimetype); in apprentice_list()
1244 me[i].mp->mimetype, in set_text_binary()
1245 me[i].mp->mimetype[0] == '\0' ? "" : "; ", in set_text_binary()
2213 m->mimetype[0] = '\0'; /* initialise MIME type to none */ in parse()
2371 CAST(off_t, offsetof(struct magic, mimetype)), in parse_mime()
2372 sizeof(m->mimetype), "MIME", "+-/.$?:{}", 1); in parse_mime()
H A Dfile.h332 char mimetype[MAXMIME]; /* MIME type */ member
H A Dsoftmagic.c2421 if ((ms->flags & MAGIC_MIME_TYPE) && m->mimetype[0]) { in handle_annotation()
2426 if (varexpand(ms, buf, sizeof(buf), m->mimetype) == -1) in handle_annotation()
2427 p = m->mimetype; in handle_annotation()
/PHP-8.0/sapi/phpdbg/
H A Dphpdbg.c1728 if (SG(sapi_headers).mimetype) { in main()
1729 efree(SG(sapi_headers).mimetype); in main()
1730 SG(sapi_headers).mimetype = NULL; in main()
/PHP-8.0/ext/phar/
H A Dphar.c3414 #define PHAR_SET_MIME(mimetype, ret, fileext) \ in PHP_GINIT_FUNCTION() argument
3415 mime.mime = mimetype; \ in PHP_GINIT_FUNCTION()
3416 mime.len = sizeof((mimetype))+1; \ in PHP_GINIT_FUNCTION()
/PHP-8.0/ext/fileinfo/tests/
H A Dmagic私はガラスを食べられます3468 # (mimetype contains "application/vnd.kde.<SUBTYPE>")
3480 # (mimetype contains "application/vnd.sun.xml.<SUBTYPE>")
3640 # Catch other ZIP-with-mimetype formats
3645 # (mimetype contains "application/<OTHER>")
3649 # (mimetype contents other than "application/*")
3650 >26 string \x8\0\0\0mimetype
3661 >>26 string !\x8\0\0\0mimetype
3673 >>>26 string !\x8\0\0\0mimetype Zip archive data
16641 # https://reposcope.com/mimetype/image/miff
20821 # https://reposcope.com/mimetype/message/x-gnu-rmail
[all …]
H A Dmagic3468 # (mimetype contains "application/vnd.kde.<SUBTYPE>")
3480 # (mimetype contains "application/vnd.sun.xml.<SUBTYPE>")
3640 # Catch other ZIP-with-mimetype formats
3645 # (mimetype contains "application/<OTHER>")
3649 # (mimetype contents other than "application/*")
3650 >26 string \x8\0\0\0mimetype
3661 >>26 string !\x8\0\0\0mimetype
3673 >>>26 string !\x8\0\0\0mimetype Zip archive data
16641 # https://reposcope.com/mimetype/image/miff
20821 # https://reposcope.com/mimetype/message/x-gnu-rmail
[all …]
/PHP-8.0/
H A Dphp.ini-development715 ; http://php.net/default-mimetype
H A Dphp.ini-production717 ; http://php.net/default-mimetype

Completed in 201 milliseconds