Searched defs:mimetype (Results 1 - 8 of 8) sorted by relevance

/PHP_5_3/ext/fileinfo/libmagic/
H A Dfile.h291 char mimetype[MAXDESC]; /* MIME type */ member in struct:magic
/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);
/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;

Completed in 19 milliseconds