/PHP-5.6/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-5.6/main/ |
H A D | SAPI.c | 322 mimetype = SG(default_mimetype); in get_default_content_type() 390 if (*mimetype != NULL) { in sapi_apply_default_charset() 391 if (*charset && strncmp(*mimetype, "text/", 5) == 0 && strstr(*mimetype, "charset=") == NULL) { in sapi_apply_default_charset() 397 efree(*mimetype); in sapi_apply_default_charset() 398 *mimetype = newtype; in sapi_apply_default_charset() 416 SG(sapi_headers).mimetype = NULL; in sapi_activate_headers_only() 458 SG(sapi_headers).mimetype = NULL; in sapi_activate() 550 if (SG(sapi_headers).mimetype) { in sapi_deactivate() 801 mimetype = estrdup(ptr); in sapi_header_op() 804 SG(sapi_headers).mimetype = estrdup(mimetype); in sapi_header_op() [all …]
|
H A D | SAPI.h | 62 char *mimetype; member 208 SAPI_API size_t sapi_apply_default_charset(char **mimetype, size_t len TSRMLS_DC);
|
/PHP-5.6/ext/zip/tests/ |
H A D | bug7658.phpt | 11 "mimetype",
|
/PHP-5.6/ext/iconv/ |
H A D | iconv.c | 399 char *s, *content_type, *mimetype = NULL; in php_iconv_output_handler() local 409 if (SG(sapi_headers).mimetype && !strncasecmp(SG(sapi_headers).mimetype, "text/", 5)) { in php_iconv_output_handler() 410 if ((s = strchr(SG(sapi_headers).mimetype,';')) == NULL){ in php_iconv_output_handler() 411 mimetype = SG(sapi_headers).mimetype; in php_iconv_output_handler() 413 mimetype = SG(sapi_headers).mimetype; in php_iconv_output_handler() 414 mimetype_len = s - SG(sapi_headers).mimetype; in php_iconv_output_handler() 417 mimetype = SG(default_mimetype) ? SG(default_mimetype) : SAPI_DEFAULT_MIMETYPE; in php_iconv_output_handler() 420 if (mimetype != NULL && !(output_context->op & PHP_OUTPUT_HANDLER_CLEAN)) { in php_iconv_output_handler() 425 …pe:%.*s; charset=%.*s", mimetype_len ? mimetype_len : (int) strlen(mimetype), mimetype, (int)(p - … in php_iconv_output_handler() 427 …Type:%.*s; charset=%s", mimetype_len ? mimetype_len : (int) strlen(mimetype), mimetype, get_output… in php_iconv_output_handler()
|
/PHP-5.6/ext/fileinfo/libmagic/ |
H A D | apprentice.c | 834 *ml->magic[magindex].mimetype == '\0') in apprentice_list() 840 ml->magic[magindex].mimetype); in apprentice_list() 1065 me[i].mp->mimetype, in set_text_binary() 2031 "`%.8s', new type `%s'", m->mimetype, l); in parse_apple() 2064 if (m->mimetype[0] != '\0') { in parse_mime() 2066 " new type `%s'", m->mimetype, l); in parse_mime() 2073 i < sizeof(m->mimetype); m->mimetype[i++] = *l++) in parse_mime() 2075 if (i == sizeof(m->mimetype)) { in parse_mime() 2076 m->mimetype[sizeof(m->mimetype) - 1] = '\0'; in parse_mime() 2079 SIZE_T_FORMAT "u", m->mimetype, i); in parse_mime() [all …]
|
H A D | file.h | 307 char mimetype[MAXMIME]; /* MIME type */ member
|
H A D | softmagic.c | 2278 if ((ms->flags & MAGIC_MIME_TYPE) && m->mimetype[0]) { in handle_annotation() 2279 if (file_printf(ms, "%s", m->mimetype) == -1) in handle_annotation()
|
/PHP-5.6/ext/curl/ |
H A D | curl_file.c | 150 ZEND_ARG_INFO(0, mimetype)
|
H A D | interface.c | 426 ZEND_ARG_INFO(0, mimetype)
|
/PHP-5.6/sapi/apache/ |
H A D | mod_php5.c | 579 char *mimetype; in php_apache_get_default_mimetype() local 585 mimetype = pstrdup(r->pool, tmpmimetype); in php_apache_get_default_mimetype() 588 mimetype = SAPI_DEFAULT_MIMETYPE "; charset=" SAPI_DEFAULT_CHARSET; in php_apache_get_default_mimetype() 590 return mimetype; in php_apache_get_default_mimetype()
|
/PHP-5.6/ext/mbstring/ |
H A D | mbstring.c | 2121 char *s, *mimetype = NULL; in PHP_FUNCTION() local 2142 if (SG(sapi_headers).mimetype && in PHP_FUNCTION() 2145 SG(sapi_headers).mimetype, in PHP_FUNCTION() 2146 strlen(SG(sapi_headers).mimetype))) { in PHP_FUNCTION() 2147 if ((s = strchr(SG(sapi_headers).mimetype,';')) == NULL){ in PHP_FUNCTION() 2148 mimetype = estrdup(SG(sapi_headers).mimetype); in PHP_FUNCTION() 2150 mimetype = estrndup(SG(sapi_headers).mimetype,s-SG(sapi_headers).mimetype); in PHP_FUNCTION() 2154 mimetype = SG(default_mimetype) ? SG(default_mimetype) : SAPI_DEFAULT_MIMETYPE; in PHP_FUNCTION() 2161 len = spprintf( &p, 0, "Content-Type: %s; charset=%s", mimetype, charset ); in PHP_FUNCTION() 2169 efree(mimetype); in PHP_FUNCTION()
|
/PHP-5.6/sapi/apache_hooks/ |
H A D | mod_php5.c | 629 char *mimetype; in php_apache_get_default_mimetype() local 635 mimetype = pstrdup(r->pool, tmpmimetype); in php_apache_get_default_mimetype() 638 mimetype = SAPI_DEFAULT_MIMETYPE "; charset=" SAPI_DEFAULT_CHARSET; in php_apache_get_default_mimetype() 640 return mimetype; in php_apache_get_default_mimetype()
|
/PHP-5.6/ext/phar/ |
H A D | phar.c | 3412 #define PHAR_SET_MIME(mimetype, ret, fileext) \ argument 3413 mime.mime = mimetype; \ 3414 mime.len = sizeof((mimetype))+1; \
|
/PHP-5.6/ext/fileinfo/tests/ |
H A D | magic | 2266 # Specialised zip formats which start with a member named 'mimetype' 2268 # Check for have 8-byte name, 0-byte extra field, name "mimetype", and 2276 # (mimetype contains "application/vnd.kde.<SUBTYPE>") 2288 # (mimetype contains "application/vnd.sun.xml.<SUBTYPE>") 2358 # Catch other ZIP-with-mimetype formats 2360 # always "PK". The 2 regex rules here print the "mimetype" member's 2363 # (mimetype contains "application/<OTHER>") 2370 # (mimetype contents other than "application/*") 2371 >26 string \x8\0\0\0mimetype 2383 >>26 string !\x8\0\0\0mimetype Zip archive data [all …]
|
/PHP-5.6/ext/fileinfo/ |
H A D | libmagic.patch | 530 m->mimetype[0] = '\0'; /* initialise MIME type to none */
|
/PHP-5.6/ |
H A D | php.ini-development | 674 ; http://php.net/default-mimetype
|
H A D | php.ini-production | 674 ; http://php.net/default-mimetype
|
H A D | NEWS | 3558 . Fixed bug #64830 (mimetype detection segfaults on mp3 file). (Anatol) 3816 . Fixed bug #64830 (mimetype detection segfaults on mp3 file). (Anatol) 7735 - Fixed bug #47359 (Use the expected unofficial mimetype for bmp files). (Scott) 8584 - Fixed bug #43295 (crash because of uninitialized SG(sapi_headers).mimetype). (Dmitry)
|