Home
last modified time | relevance | path

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

/PHP-7.3/sapi/cli/tests/
H A Dbug61977.phpt19 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 DSAPI.c309 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 DSAPI.h59 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 Dbug7658.phpt10 "mimetype",
/PHP-7.3/ext/iconv/
H A Diconv.c396 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 Dcurl_file.c145 ZEND_ARG_INFO(0, mimetype)
H A Dinterface.c440 ZEND_ARG_INFO(0, mimetype)
/PHP-7.3/ext/mbstring/
H A Dmbstring.c2218 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 Dapprentice.c957 *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 Dfile.h321 char mimetype[MAXMIME]; /* MIME type */ member
H A Dsoftmagic.c2206 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 Dphpdbg.c1781 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 Dphar.c3386 #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 Dlibmagic.patch732 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 Dmagic3213 # 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 Dmagic私はガラスを食べられます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 Dphp.ini-development701 ; http://php.net/default-mimetype
H A Dphp.ini-production703 ; http://php.net/default-mimetype

Completed in 192 milliseconds