/PHP-5.4/main/ |
H A D | php_logos.c | 28 const char *mimetype; member 36 PHPAPI int php_register_info_logo(char *logo_string, const char *mimetype, const unsigned char *dat… in php_register_info_logo() argument 40 info_logo.mimetype = mimetype; in php_register_info_logo() 41 info_logo.mimelen = strlen(mimetype); in php_register_info_logo() 84 …memcpy(content_header + sizeof(CONTENT_TYPE_HEADER) - 1 , logo_image->mimetype, logo_image->mimele… in php_info_logos()
|
H A D | SAPI.c | 301 mimetype = SG(default_mimetype); in get_default_content_type() 369 if (*mimetype != NULL) { in sapi_apply_default_charset() 370 if (*charset && strncmp(*mimetype, "text/", 5) == 0 && strstr(*mimetype, "charset=") == NULL) { in sapi_apply_default_charset() 376 efree(*mimetype); in sapi_apply_default_charset() 377 *mimetype = newtype; in sapi_apply_default_charset() 395 SG(sapi_headers).mimetype = NULL; in sapi_activate_headers_only() 438 SG(sapi_headers).mimetype = NULL; in sapi_activate() 541 if (SG(sapi_headers).mimetype) { in sapi_deactivate() 792 mimetype = estrdup(ptr); in sapi_header_op() 795 SG(sapi_headers).mimetype = estrdup(mimetype); in sapi_header_op() [all …]
|
H A D | php_logos.h | 26 PHPAPI int php_register_info_logo(char *logo_string, const char *mimetype, const unsigned char *dat…
|
H A D | SAPI.h | 61 char *mimetype; member 205 SAPI_API size_t sapi_apply_default_charset(char **mimetype, size_t len TSRMLS_DC);
|
/PHP-5.4/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.4/ext/zip/tests/ |
H A D | bug7658.phpt | 11 "mimetype",
|
/PHP-5.4/ext/iconv/ |
H A D | iconv.c | 334 char *s, *content_type, *mimetype = NULL; in php_iconv_output_handler() local 344 if (SG(sapi_headers).mimetype && !strncasecmp(SG(sapi_headers).mimetype, "text/", 5)) { in php_iconv_output_handler() 345 if ((s = strchr(SG(sapi_headers).mimetype,';')) == NULL){ in php_iconv_output_handler() 346 mimetype = SG(sapi_headers).mimetype; in php_iconv_output_handler() 348 mimetype = SG(sapi_headers).mimetype; in php_iconv_output_handler() 349 mimetype_len = s - SG(sapi_headers).mimetype; in php_iconv_output_handler() 352 mimetype = SG(default_mimetype) ? SG(default_mimetype) : SAPI_DEFAULT_MIMETYPE; in php_iconv_output_handler() 355 if (mimetype != NULL && !(output_context->op & PHP_OUTPUT_HANDLER_CLEAN)) { in php_iconv_output_handler() 360 …pe:%.*s; charset=%.*s", mimetype_len ? mimetype_len : (int) strlen(mimetype), mimetype, (int)(p - … in php_iconv_output_handler() 362 …Type:%.*s; charset=%s", mimetype_len ? mimetype_len : (int) strlen(mimetype), mimetype, ICONVG(out… in php_iconv_output_handler()
|
/PHP-5.4/ext/fileinfo/libmagic/ |
H A D | apprentice.c | 819 *ml->magic[magindex].mimetype == '\0') in apprentice_list() 825 ml->magic[magindex].mimetype); in apprentice_list() 1054 me[i].mp->mimetype, in set_text_binary() 2023 "`%.8s', new type `%s'", m->mimetype, l); in parse_apple() 2056 if (m->mimetype[0] != '\0') { in parse_mime() 2058 " new type `%s'", m->mimetype, l); in parse_mime() 2065 i < sizeof(m->mimetype); m->mimetype[i++] = *l++) in parse_mime() 2067 if (i == sizeof(m->mimetype)) { in parse_mime() 2068 m->mimetype[sizeof(m->mimetype) - 1] = '\0'; in parse_mime() 2071 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 | 2303 if ((ms->flags & MAGIC_MIME_TYPE) && m->mimetype[0]) { in handle_annotation() 2304 if (file_printf(ms, "%s", m->mimetype) == -1) in handle_annotation()
|
/PHP-5.4/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.4/ext/mbstring/ |
H A D | mbstring.c | 2099 char *s, *mimetype = NULL; in PHP_FUNCTION() local 2120 if (SG(sapi_headers).mimetype && in PHP_FUNCTION() 2123 SG(sapi_headers).mimetype, in PHP_FUNCTION() 2124 strlen(SG(sapi_headers).mimetype))) { in PHP_FUNCTION() 2125 if ((s = strchr(SG(sapi_headers).mimetype,';')) == NULL){ in PHP_FUNCTION() 2126 mimetype = estrdup(SG(sapi_headers).mimetype); in PHP_FUNCTION() 2128 mimetype = estrndup(SG(sapi_headers).mimetype,s-SG(sapi_headers).mimetype); in PHP_FUNCTION() 2132 mimetype = SG(default_mimetype) ? SG(default_mimetype) : SAPI_DEFAULT_MIMETYPE; in PHP_FUNCTION() 2139 len = spprintf( &p, 0, "Content-Type: %s; charset=%s", mimetype, charset ); in PHP_FUNCTION() 2147 efree(mimetype); in PHP_FUNCTION()
|
/PHP-5.4/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.4/ext/phar/ |
H A D | phar.c | 3498 #define PHAR_SET_MIME(mimetype, ret, fileext) \ argument 3499 mime.mime = mimetype; \ 3500 mime.len = sizeof((mimetype))+1; \
|
/PHP-5.4/ext/fileinfo/tests/ |
H A D | magic | 2166 # Specialised zip formats which start with a member named 'mimetype' 2168 # Check for have 8-byte name, 0-byte extra field, name "mimetype", and 2176 # (mimetype contains "application/vnd.kde.<SUBTYPE>") 2188 # (mimetype contains "application/vnd.sun.xml.<SUBTYPE>") 2258 # Catch other ZIP-with-mimetype formats 2260 # always "PK". The 2 regex rules here print the "mimetype" member's 2263 # (mimetype contains "application/<OTHER>") 2270 # (mimetype contents other than "application/*") 2271 >26 string \x8\0\0\0mimetype 2283 >>26 string !\x8\0\0\0mimetype Zip archive data [all …]
|
/PHP-5.4/ |
H A D | php.ini-development | 678 ; http://php.net/default-mimetype
|
H A D | php.ini-production | 678 ; http://php.net/default-mimetype
|
H A D | NEWS | 1052 . Fixed bug #64830 (mimetype detection segfaults on mp3 file). (Anatol) 4968 - Fixed bug #47359 (Use the expected unofficial mimetype for bmp files). (Scott) 5817 - Fixed bug #43295 (crash because of uninitialized SG(sapi_headers).mimetype). (Dmitry)
|
/PHP-5.4/ext/fileinfo/ |
H A D | libmagic.patch | 556 m->mimetype[0] = '\0'; /* initialise MIME type to none */
|