Home
last modified time | relevance | path

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

/PHP-7.4/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-7.4/main/
H A DSAPI.c305 mimetype = SG(default_mimetype); in get_default_content_type()
373 if (*mimetype != NULL) { in sapi_apply_default_charset()
374 if (*charset && strncmp(*mimetype, "text/", 5) == 0 && strstr(*mimetype, "charset=") == NULL) { in sapi_apply_default_charset()
380 efree(*mimetype); in sapi_apply_default_charset()
381 *mimetype = newtype; in sapi_apply_default_charset()
399 SG(sapi_headers).mimetype = NULL; in sapi_activate_headers_only()
441 SG(sapi_headers).mimetype = NULL; in sapi_activate()
531 if (SG(sapi_headers).mimetype) { in sapi_deactivate()
780 mimetype = estrdup(ptr); in sapi_header_op()
783 SG(sapi_headers).mimetype = estrdup(mimetype); in sapi_header_op()
[all …]
H A DSAPI.h59 char *mimetype; member
206 SAPI_API size_t sapi_apply_default_charset(char **mimetype, size_t len);
/PHP-7.4/ext/zip/tests/
H A Dbug7658.phpt10 "mimetype",
/PHP-7.4/ext/iconv/
H A Diconv.c381 char *s, *content_type, *mimetype = NULL; in php_iconv_output_handler() local
390 if (SG(sapi_headers).mimetype && !strncasecmp(SG(sapi_headers).mimetype, "text/", 5)) { in php_iconv_output_handler()
391 if ((s = strchr(SG(sapi_headers).mimetype,';')) == NULL){ in php_iconv_output_handler()
392 mimetype = SG(sapi_headers).mimetype; in php_iconv_output_handler()
394 mimetype = SG(sapi_headers).mimetype; in php_iconv_output_handler()
395 mimetype_len = (int)(s - SG(sapi_headers).mimetype); in php_iconv_output_handler()
398 mimetype = SG(default_mimetype) ? SG(default_mimetype) : SAPI_DEFAULT_MIMETYPE; in php_iconv_output_handler()
401 if (mimetype != NULL && !(output_context->op & PHP_OUTPUT_HANDLER_CLEAN)) { in php_iconv_output_handler()
406 …pe:%.*s; charset=%.*s", mimetype_len ? mimetype_len : (int) strlen(mimetype), mimetype, (int) (p -… in php_iconv_output_handler()
408 …Type:%.*s; charset=%s", mimetype_len ? mimetype_len : (int) strlen(mimetype), mimetype, get_output… in php_iconv_output_handler()
/PHP-7.4/ext/curl/
H A Dcurl_file.c136 ZEND_ARG_INFO(0, mimetype)
H A Dinterface.c382 ZEND_ARG_INFO(0, mimetype)
/PHP-7.4/ext/mbstring/
H A Dmbstring.c2223 char *s, *mimetype = NULL; in PHP_FUNCTION() local
2244 if (SG(sapi_headers).mimetype && in PHP_FUNCTION()
2247 SG(sapi_headers).mimetype, in PHP_FUNCTION()
2248 strlen(SG(sapi_headers).mimetype))) { in PHP_FUNCTION()
2249 if ((s = strchr(SG(sapi_headers).mimetype,';')) == NULL){ in PHP_FUNCTION()
2250 mimetype = estrdup(SG(sapi_headers).mimetype); in PHP_FUNCTION()
2252 mimetype = estrndup(SG(sapi_headers).mimetype,s-SG(sapi_headers).mimetype); in PHP_FUNCTION()
2256 mimetype = SG(default_mimetype) ? SG(default_mimetype) : SAPI_DEFAULT_MIMETYPE; in PHP_FUNCTION()
2263 len = spprintf( &p, 0, "Content-Type: %s; charset=%s", mimetype, charset ); in PHP_FUNCTION()
2271 efree(mimetype); in PHP_FUNCTION()
/PHP-7.4/ext/fileinfo/libmagic/
H A Dapprentice.c971 *ml->magic[magindex].mimetype == '\0') in apprentice_list()
978 ml->magic[magindex].mimetype); in apprentice_list()
1204 me[i].mp->mimetype, in set_text_binary()
1205 me[i].mp->mimetype[0] == '\0' ? "" : "; ", in set_text_binary()
2161 m->mimetype[0] = '\0'; /* initialise MIME type to none */ in parse()
2314 CAST(zend_off_t, offsetof(struct magic, mimetype)), in parse_mime()
2315 sizeof(m->mimetype), "MIME", "+-/.$?:{}", 1); in parse_mime()
H A Dfile.h326 char mimetype[MAXMIME]; /* MIME type */ member
H A Dsoftmagic.c2345 if ((ms->flags & MAGIC_MIME_TYPE) && m->mimetype[0]) { in handle_annotation()
2350 if (varexpand(ms, buf, sizeof(buf), m->mimetype) == -1) in handle_annotation()
2351 p = m->mimetype; in handle_annotation()
/PHP-7.4/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.4/ext/phar/
H A Dphar.c3373 #define PHAR_SET_MIME(mimetype, ret, fileext) \ in PHP_GINIT_FUNCTION() argument
3374 mime.mime = mimetype; \ in PHP_GINIT_FUNCTION()
3375 mime.len = sizeof((mimetype))+1; \ in PHP_GINIT_FUNCTION()
/PHP-7.4/ext/fileinfo/
H A Dlibmagic.patch608 m->mimetype[0] = '\0'; /* initialise MIME type to none */
624 - CAST(off_t, offsetof(struct magic, mimetype)),
625 + CAST(zend_off_t, offsetof(struct magic, mimetype)),
626 sizeof(m->mimetype), "MIME", "+-/.$?:{}", 1);
/PHP-7.4/ext/fileinfo/tests/
H A Dmagic私はガラスを食べられます3401 # Specialised zip formats which start with a member named 'mimetype'
3411 # (mimetype contains "application/vnd.kde.<SUBTYPE>")
3423 # (mimetype contains "application/vnd.sun.xml.<SUBTYPE>")
3496 # Catch other ZIP-with-mimetype formats
3498 # always "PK". The 2 regex rules here print the "mimetype" member's
3501 # (mimetype contains "application/<OTHER>")
3508 # (mimetype contents other than "application/*")
3509 >26 string \x8\0\0\0mimetype
3520 >>26 string !\x8\0\0\0mimetype
3529 >>26 string !\x8\0\0\0mimetype Zip archive data
[all …]
H A Dmagic3401 # Specialised zip formats which start with a member named 'mimetype'
3411 # (mimetype contains "application/vnd.kde.<SUBTYPE>")
3423 # (mimetype contains "application/vnd.sun.xml.<SUBTYPE>")
3496 # Catch other ZIP-with-mimetype formats
3498 # always "PK". The 2 regex rules here print the "mimetype" member's
3501 # (mimetype contains "application/<OTHER>")
3508 # (mimetype contents other than "application/*")
3509 >26 string \x8\0\0\0mimetype
3520 >>26 string !\x8\0\0\0mimetype
3529 >>26 string !\x8\0\0\0mimetype Zip archive data
[all …]
/PHP-7.4/
H A Dphp.ini-development708 ; http://php.net/default-mimetype
H A Dphp.ini-production708 ; http://php.net/default-mimetype
H A DNEWS834 . Fixed bug #79681 (mime_content_type/finfo returning incorrect mimetype).

Completed in 209 milliseconds