Home
last modified time | relevance | path

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

/PHP-7.2/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.2/main/
H A DSAPI.c311 mimetype = SG(default_mimetype); in get_default_content_type()
379 if (*mimetype != NULL) { in sapi_apply_default_charset()
380 if (*charset && strncmp(*mimetype, "text/", 5) == 0 && strstr(*mimetype, "charset=") == NULL) { in sapi_apply_default_charset()
386 efree(*mimetype); in sapi_apply_default_charset()
387 *mimetype = newtype; in sapi_apply_default_charset()
405 SG(sapi_headers).mimetype = NULL; in sapi_activate_headers_only()
447 SG(sapi_headers).mimetype = NULL; in sapi_activate()
537 if (SG(sapi_headers).mimetype) { in sapi_deactivate()
786 mimetype = estrdup(ptr); in sapi_header_op()
789 SG(sapi_headers).mimetype = estrdup(mimetype); in sapi_header_op()
[all …]
H A DSAPI.h61 char *mimetype; member
206 SAPI_API size_t sapi_apply_default_charset(char **mimetype, size_t len);
/PHP-7.2/ext/zip/tests/
H A Dbug7658.phpt11 "mimetype",
/PHP-7.2/ext/iconv/
H A Diconv.c398 char *s, *content_type, *mimetype = NULL; in php_iconv_output_handler() local
407 if (SG(sapi_headers).mimetype && !strncasecmp(SG(sapi_headers).mimetype, "text/", 5)) { in php_iconv_output_handler()
408 if ((s = strchr(SG(sapi_headers).mimetype,';')) == NULL){ in php_iconv_output_handler()
409 mimetype = SG(sapi_headers).mimetype; in php_iconv_output_handler()
411 mimetype = SG(sapi_headers).mimetype; in php_iconv_output_handler()
412 mimetype_len = (int)(s - SG(sapi_headers).mimetype); in php_iconv_output_handler()
415 mimetype = SG(default_mimetype) ? SG(default_mimetype) : SAPI_DEFAULT_MIMETYPE; in php_iconv_output_handler()
418 if (mimetype != NULL && !(output_context->op & PHP_OUTPUT_HANDLER_CLEAN)) { in php_iconv_output_handler()
423 …pe:%.*s; charset=%.*s", mimetype_len ? mimetype_len : (int) strlen(mimetype), mimetype, (int) (p -… in php_iconv_output_handler()
425 …Type:%.*s; charset=%s", mimetype_len ? mimetype_len : (int) strlen(mimetype), mimetype, get_output… in php_iconv_output_handler()
/PHP-7.2/ext/curl/
H A Dcurl_file.c148 ZEND_ARG_INFO(0, mimetype)
H A Dinterface.c448 ZEND_ARG_INFO(0, mimetype)
/PHP-7.2/ext/mbstring/
H A Dmbstring.c2157 char *s, *mimetype = NULL; in PHP_FUNCTION() local
2178 if (SG(sapi_headers).mimetype && in PHP_FUNCTION()
2181 SG(sapi_headers).mimetype, in PHP_FUNCTION()
2182 strlen(SG(sapi_headers).mimetype))) { in PHP_FUNCTION()
2183 if ((s = strchr(SG(sapi_headers).mimetype,';')) == NULL){ in PHP_FUNCTION()
2184 mimetype = estrdup(SG(sapi_headers).mimetype); in PHP_FUNCTION()
2186 mimetype = estrndup(SG(sapi_headers).mimetype,s-SG(sapi_headers).mimetype); in PHP_FUNCTION()
2190 mimetype = SG(default_mimetype) ? SG(default_mimetype) : SAPI_DEFAULT_MIMETYPE; in PHP_FUNCTION()
2197 len = spprintf( &p, 0, "Content-Type: %s; charset=%s", mimetype, charset ); in PHP_FUNCTION()
2205 efree(mimetype); in PHP_FUNCTION()
/PHP-7.2/ext/fileinfo/libmagic/
H A Dapprentice.c917 *ml->magic[magindex].mimetype == '\0') in apprentice_list()
924 ml->magic[magindex].mimetype); in apprentice_list()
1150 me[i].mp->mimetype, in set_text_binary()
1151 me[i].mp->mimetype[0] == '\0' ? "" : "; ", in set_text_binary()
2098 m->mimetype[0] = '\0'; /* initialise MIME type to none */ in parse()
2251 CAST(zend_off_t, offsetof(struct magic, mimetype)), in parse_mime()
2252 sizeof(m->mimetype), "MIME", "+-/.", 1); in parse_mime()
H A Dfile.h311 char mimetype[MAXMIME]; /* MIME type */ member
H A Dsoftmagic.c2081 if ((ms->flags & MAGIC_MIME_TYPE) && m->mimetype[0]) { in handle_annotation()
2084 if (file_printf(ms, "%s", m->mimetype) == -1) in handle_annotation()
/PHP-7.2/sapi/phpdbg/
H A Dphpdbg.c1788 if (SG(sapi_headers).mimetype) { in main()
1789 efree(SG(sapi_headers).mimetype); in main()
1790 SG(sapi_headers).mimetype = NULL; in main()
/PHP-7.2/ext/phar/
H A Dphar.c3371 #define PHAR_SET_MIME(mimetype, ret, fileext) \ argument
3372 mime.mime = mimetype; \
3373 mime.len = sizeof((mimetype))+1; \
/PHP-7.2/ext/fileinfo/
H A Dlibmagic.patch587 m->mimetype[0] = '\0'; /* initialise MIME type to none */
603 - CAST(off_t, offsetof(struct magic, mimetype)),
604 + CAST(zend_off_t, offsetof(struct magic, mimetype)),
605 sizeof(m->mimetype), "MIME", "+-/.", 1);
/PHP-7.2/ext/fileinfo/tests/
H A Dmagic2879 # Specialised zip formats which start with a member named 'mimetype'
2889 # (mimetype contains "application/vnd.kde.<SUBTYPE>")
2901 # (mimetype contains "application/vnd.sun.xml.<SUBTYPE>")
2971 # Catch other ZIP-with-mimetype formats
2973 # always "PK". The 2 regex rules here print the "mimetype" member's
2976 # (mimetype contains "application/<OTHER>")
2983 # (mimetype contents other than "application/*")
2984 >26 string \x8\0\0\0mimetype
2995 >>26 string !\x8\0\0\0mimetype
3004 >>26 string !\x8\0\0\0mimetype Zip archive data
[all …]
H A Dmagic私はガラスを食べられます2879 # Specialised zip formats which start with a member named 'mimetype'
2889 # (mimetype contains "application/vnd.kde.<SUBTYPE>")
2901 # (mimetype contains "application/vnd.sun.xml.<SUBTYPE>")
2971 # Catch other ZIP-with-mimetype formats
2973 # always "PK". The 2 regex rules here print the "mimetype" member's
2976 # (mimetype contains "application/<OTHER>")
2983 # (mimetype contents other than "application/*")
2984 >26 string \x8\0\0\0mimetype
2995 >>26 string !\x8\0\0\0mimetype
3004 >>26 string !\x8\0\0\0mimetype Zip archive data
[all …]
/PHP-7.2/
H A Dphp.ini-development681 ; http://php.net/default-mimetype
H A Dphp.ini-production683 ; http://php.net/default-mimetype

Completed in 222 milliseconds