Searched refs:mimetype (Results 1 - 12 of 12) sorted by relevance

/PHP_5_3/ext/fileinfo/libmagic/
H A Dapprentice.c559 * 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 Dfile.h291 char mimetype[MAXDESC]; /* MIME type */ member in struct:magic
H A Dsoftmagic.c2107 if ((ms->flags & MAGIC_MIME_TYPE) && m->mimetype[0]) {
2108 if (file_printf(ms, "%s", m->mimetype) == -1)
/PHP_5_3/ext/iconv/
H A Diconv.c2342 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 Dmbstring.c1930 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 DSAPI.c232 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 DSAPI.h61 char *mimetype; member in struct:__anon244
202 SAPI_API size_t sapi_apply_default_charset(char **mimetype, size_t len TSRMLS_DC);
H A Dphp_logos.c28 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 Dphp_logos.h26 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 Dmod_php5.c583 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 Dmod_php5.c634 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 Dphar.c3478 #define PHAR_SET_MIME(mimetype, ret, fileext) \
3479 mime.mime = mimetype; \
3480 mime.len = sizeof((mimetype))+1; \

Completed in 42 milliseconds