| /PHP_5_3/ext/fileinfo/libmagic/ |
| H A D | apprentice.c | 559 * description/mimetype. 564 *ml->magic[magindex].mimetype == '\0') 570 ml->magic[magindex].mimetype); 839 marray[i].mp->mimetype, 840 marray[i].mp->mimetype[0] == '\0' ? "" : "; ", 1550 m->mimetype[0] = '\0'; /* initialise MIME type to none */ 1623 "`%.8s', new type `%s'", m->mimetype, l); 1656 if (m->mimetype[0] != '\0') { 1658 " new type `%s'", m->mimetype, l); 1665 i < sizeof(m->mimetype); [all...] |
| H A D | file.h | 291 char mimetype[MAXDESC]; /* MIME type */ member in struct:magic
|
| H A D | softmagic.c | 2099 if ((ms->flags & MAGIC_MIME_TYPE) && m->mimetype[0]) { 2100 if (file_printf(ms, "%s", m->mimetype) == -1)
|
| /PHP_5_3/ext/iconv/ |
| H A D | iconv.c | 2342 char *out_buffer, *content_type, *mimetype = NULL, *s; local 2353 if (SG(sapi_headers).mimetype && 2354 strncasecmp(SG(sapi_headers).mimetype, "text/", 5) == 0) { 2355 if ((s = strchr(SG(sapi_headers).mimetype,';')) == NULL){ 2356 mimetype = SG(sapi_headers).mimetype; 2358 mimetype = estrndup(SG(sapi_headers).mimetype, s-SG(sapi_headers).mimetype); 2362 mimetype [all...] |
| /PHP_5_3/ext/mbstring/ |
| H A D | mbstring.c | 1930 char *s, *mimetype = NULL; local 1951 if (SG(sapi_headers).mimetype && 1954 SG(sapi_headers).mimetype, 1955 strlen(SG(sapi_headers).mimetype))) { 1956 if ((s = strchr(SG(sapi_headers).mimetype,';')) == NULL){ 1957 mimetype = estrdup(SG(sapi_headers).mimetype); 1959 mimetype = estrndup(SG(sapi_headers).mimetype,s-SG(sapi_headers).mimetype); [all...] |
| /PHP_5_3/main/ |
| H A D | SAPI.c | 232 char *mimetype, *charset, *content_type; local 234 mimetype = SG(default_mimetype) ? SG(default_mimetype) : SAPI_DEFAULT_MIMETYPE; 237 if (strncasecmp(mimetype, "text/", 5) == 0 && *charset) { 238 int len = strlen(mimetype) + sizeof("; charset=") + strlen(charset); /* sizeof() includes \0 */ 240 snprintf(content_type, len, "%s; charset=%s", mimetype, charset); 242 content_type = estrdup(mimetype); 266 * If "mimetype" is non-NULL, it should point to a pointer allocated 268 * re-allocated and the new length is returned. If mimetype is 272 SAPI_API size_t sapi_apply_default_charset(char **mimetype, size_t len TSRMLS_DC) argument 278 if (*mimetype ! 670 char *ptr = colon_offset+1, *mimetype = NULL, *newheader; local [all...] |
| H A D | SAPI.h | 61 char *mimetype; member in struct:__anon244 202 SAPI_API size_t sapi_apply_default_charset(char **mimetype, size_t len TSRMLS_DC);
|
| H A D | php_logos.c | 28 const char *mimetype; member in struct:_php_info_logo 36 PHPAPI int php_register_info_logo(char *logo_string, const char *mimetype, const unsigned char *data, int size) argument 40 info_logo.mimetype = mimetype; 41 info_logo.mimelen = strlen(mimetype); 84 memcpy(content_header + sizeof(CONTENT_TYPE_HEADER) - 1 , logo_image->mimetype, logo_image->mimelen);
|
| H A D | php_logos.h | 26 PHPAPI int php_register_info_logo(char *logo_string, const char *mimetype, const unsigned char *data, int size);
|
| /PHP_5_3/sapi/apache/ |
| H A D | mod_php5.c | 583 char *mimetype; local 589 mimetype = pstrdup(r->pool, tmpmimetype); 592 mimetype = SAPI_DEFAULT_MIMETYPE "; charset=" SAPI_DEFAULT_CHARSET; 594 return mimetype;
|
| /PHP_5_3/sapi/apache_hooks/ |
| H A D | mod_php5.c | 634 char *mimetype; local 640 mimetype = pstrdup(r->pool, tmpmimetype); 643 mimetype = SAPI_DEFAULT_MIMETYPE "; charset=" SAPI_DEFAULT_CHARSET; 645 return mimetype;
|
| /PHP_5_3/ext/phar/ |
| H A D | phar.c | 3478 #define PHAR_SET_MIME(mimetype, ret, fileext) \ 3479 mime.mime = mimetype; \ 3480 mime.len = sizeof((mimetype))+1; \
|