/PHP-7.3/sapi/cli/tests/ |
H A D | bug61977.phpt | 19 foreach ($mimetypes as $mimetype) { 24 file_put_contents(__DIR__ . "/foo.{$mimetype}", ''); 26 GET /foo.{$mimetype} HTTP/1.1 35 echo "foo.{$mimetype} => ", $text; 38 @unlink(__DIR__ . "/foo.{$mimetype}");
|
/PHP-7.3/main/ |
H A D | SAPI.c | 309 mimetype = SG(default_mimetype); in get_default_content_type() 377 if (*mimetype != NULL) { in sapi_apply_default_charset() 378 if (*charset && strncmp(*mimetype, "text/", 5) == 0 && strstr(*mimetype, "charset=") == NULL) { in sapi_apply_default_charset() 384 efree(*mimetype); in sapi_apply_default_charset() 385 *mimetype = newtype; in sapi_apply_default_charset() 403 SG(sapi_headers).mimetype = NULL; in sapi_activate_headers_only() 445 SG(sapi_headers).mimetype = NULL; in sapi_activate() 535 if (SG(sapi_headers).mimetype) { in sapi_deactivate() 784 mimetype = estrdup(ptr); in sapi_header_op() 787 SG(sapi_headers).mimetype = estrdup(mimetype); in sapi_header_op() [all …]
|
H A D | SAPI.h | 59 char *mimetype; member 205 SAPI_API size_t sapi_apply_default_charset(char **mimetype, size_t len);
|
/PHP-7.3/ext/zip/tests/ |
H A D | bug7658.phpt | 10 "mimetype",
|
/PHP-7.3/ext/iconv/ |
H A D | iconv.c | 396 char *s, *content_type, *mimetype = NULL; in php_iconv_output_handler() local 405 if (SG(sapi_headers).mimetype && !strncasecmp(SG(sapi_headers).mimetype, "text/", 5)) { in php_iconv_output_handler() 406 if ((s = strchr(SG(sapi_headers).mimetype,';')) == NULL){ in php_iconv_output_handler() 407 mimetype = SG(sapi_headers).mimetype; in php_iconv_output_handler() 409 mimetype = SG(sapi_headers).mimetype; in php_iconv_output_handler() 410 mimetype_len = (int)(s - SG(sapi_headers).mimetype); in php_iconv_output_handler() 413 mimetype = SG(default_mimetype) ? SG(default_mimetype) : SAPI_DEFAULT_MIMETYPE; in php_iconv_output_handler() 416 if (mimetype != NULL && !(output_context->op & PHP_OUTPUT_HANDLER_CLEAN)) { in php_iconv_output_handler() 421 …pe:%.*s; charset=%.*s", mimetype_len ? mimetype_len : (int) strlen(mimetype), mimetype, (int) (p -… in php_iconv_output_handler() 423 …Type:%.*s; charset=%s", mimetype_len ? mimetype_len : (int) strlen(mimetype), mimetype, get_output… in php_iconv_output_handler()
|
/PHP-7.3/ext/curl/ |
H A D | curl_file.c | 145 ZEND_ARG_INFO(0, mimetype)
|
H A D | interface.c | 440 ZEND_ARG_INFO(0, mimetype)
|
/PHP-7.3/ext/mbstring/ |
H A D | mbstring.c | 2218 char *s, *mimetype = NULL; in PHP_FUNCTION() local 2239 if (SG(sapi_headers).mimetype && in PHP_FUNCTION() 2242 SG(sapi_headers).mimetype, in PHP_FUNCTION() 2243 strlen(SG(sapi_headers).mimetype))) { in PHP_FUNCTION() 2244 if ((s = strchr(SG(sapi_headers).mimetype,';')) == NULL){ in PHP_FUNCTION() 2245 mimetype = estrdup(SG(sapi_headers).mimetype); in PHP_FUNCTION() 2247 mimetype = estrndup(SG(sapi_headers).mimetype,s-SG(sapi_headers).mimetype); in PHP_FUNCTION() 2251 mimetype = SG(default_mimetype) ? SG(default_mimetype) : SAPI_DEFAULT_MIMETYPE; in PHP_FUNCTION() 2258 len = spprintf( &p, 0, "Content-Type: %s; charset=%s", mimetype, charset ); in PHP_FUNCTION() 2266 efree(mimetype); in PHP_FUNCTION()
|
/PHP-7.3/ext/fileinfo/libmagic/ |
H A D | apprentice.c | 957 *ml->magic[magindex].mimetype == '\0') in apprentice_list() 964 ml->magic[magindex].mimetype); in apprentice_list() 1190 me[i].mp->mimetype, in set_text_binary() 1191 me[i].mp->mimetype[0] == '\0' ? "" : "; ", in set_text_binary() 2138 m->mimetype[0] = '\0'; /* initialise MIME type to none */ in parse() 2291 CAST(zend_off_t, offsetof(struct magic, mimetype)), in parse_mime() 2292 sizeof(m->mimetype), "MIME", "+-/.$?:{}", 1); in parse_mime()
|
H A D | file.h | 321 char mimetype[MAXMIME]; /* MIME type */ member
|
H A D | softmagic.c | 2206 if ((ms->flags & MAGIC_MIME_TYPE) && m->mimetype[0]) { in handle_annotation() 2211 if (varexpand(buf, sizeof(buf), b, m->mimetype) == -1) in handle_annotation() 2212 p = m->mimetype; in handle_annotation()
|
/PHP-7.3/sapi/phpdbg/ |
H A D | phpdbg.c | 1781 if (SG(sapi_headers).mimetype) { in main() 1782 efree(SG(sapi_headers).mimetype); in main() 1783 SG(sapi_headers).mimetype = NULL; in main()
|
/PHP-7.3/ext/phar/ |
H A D | phar.c | 3386 #define PHAR_SET_MIME(mimetype, ret, fileext) \ argument 3387 mime.mime = mimetype; \ 3388 mime.len = sizeof((mimetype))+1; \
|
/PHP-7.3/ext/fileinfo/ |
H A D | libmagic.patch | 732 m->mimetype[0] = '\0'; /* initialise MIME type to none */ 757 - CAST(off_t, offsetof(struct magic, mimetype)), 758 + CAST(zend_off_t, offsetof(struct magic, mimetype)), 759 sizeof(m->mimetype), "MIME", "+-/.$?:{}", 1);
|
/PHP-7.3/ext/fileinfo/tests/ |
H A D | magic | 3213 # Specialised zip formats which start with a member named 'mimetype' 3223 # (mimetype contains "application/vnd.kde.<SUBTYPE>") 3235 # (mimetype contains "application/vnd.sun.xml.<SUBTYPE>") 3308 # Catch other ZIP-with-mimetype formats 3310 # always "PK". The 2 regex rules here print the "mimetype" member's 3313 # (mimetype contains "application/<OTHER>") 3320 # (mimetype contents other than "application/*") 3321 >26 string \x8\0\0\0mimetype 3332 >>26 string !\x8\0\0\0mimetype 3341 >>26 string !\x8\0\0\0mimetype Zip archive data [all …]
|
H A D | magic私はガラスを食べられます | 3213 # Specialised zip formats which start with a member named 'mimetype' 3223 # (mimetype contains "application/vnd.kde.<SUBTYPE>") 3235 # (mimetype contains "application/vnd.sun.xml.<SUBTYPE>") 3308 # Catch other ZIP-with-mimetype formats 3310 # always "PK". The 2 regex rules here print the "mimetype" member's 3313 # (mimetype contains "application/<OTHER>") 3320 # (mimetype contents other than "application/*") 3321 >26 string \x8\0\0\0mimetype 3332 >>26 string !\x8\0\0\0mimetype 3341 >>26 string !\x8\0\0\0mimetype Zip archive data [all …]
|
/PHP-7.3/ |
H A D | php.ini-development | 701 ; http://php.net/default-mimetype
|
H A D | php.ini-production | 703 ; http://php.net/default-mimetype
|