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

/PHP_TRUNK/ext/fileinfo/libmagic/
H A Dfile.h307 char mimetype[MAXMIME]; /* MIME type */ member in struct:magic
/PHP_TRUNK/ext/iconv/
H A Diconv.c402 char *s, *content_type, *mimetype = NULL; local
412 if (SG(sapi_headers).mimetype && !strncasecmp(SG(sapi_headers).mimetype, "text/", 5)) {
413 if ((s = strchr(SG(sapi_headers).mimetype,';')) == NULL){
414 mimetype = SG(sapi_headers).mimetype;
416 mimetype = SG(sapi_headers).mimetype;
417 mimetype_len = (int)(s - SG(sapi_headers).mimetype);
420 mimetype
[all...]
/PHP_TRUNK/ext/mbstring/
H A Dmbstring.c2124 char *s, *mimetype = NULL; local
2145 if (SG(sapi_headers).mimetype &&
2148 SG(sapi_headers).mimetype,
2149 strlen(SG(sapi_headers).mimetype))) {
2150 if ((s = strchr(SG(sapi_headers).mimetype,';')) == NULL){
2151 mimetype = estrdup(SG(sapi_headers).mimetype);
2153 mimetype = estrndup(SG(sapi_headers).mimetype,s-SG(sapi_headers).mimetype);
[all...]
/PHP_TRUNK/main/
H A DSAPI.c312 char *mimetype, *charset, *content_type; local
316 mimetype = SG(default_mimetype);
319 mimetype = SAPI_DEFAULT_MIMETYPE;
330 if (*charset && strncasecmp(mimetype, "text/", 5) == 0) {
336 memcpy(p, mimetype, mimetype_len);
344 memcpy(content_type + prefix_len, mimetype, mimetype_len + 1);
372 * If "mimetype" is non-NULL, it should point to a pointer allocated
374 * re-allocated and the new length is returned. If mimetype is
378 SAPI_API size_t sapi_apply_default_charset(char **mimetype, size_t len) argument
384 if (*mimetype !
786 char *ptr = colon_offset+1, *mimetype = NULL, *newheader; local
[all...]
H A DSAPI.h63 char *mimetype; member in struct:__anon253
209 SAPI_API size_t sapi_apply_default_charset(char **mimetype, size_t len);
/PHP_TRUNK/sapi/apache/
H A Dmod_php7.c580 char *mimetype; local
586 mimetype = pstrdup(r->pool, tmpmimetype);
589 mimetype = SAPI_DEFAULT_MIMETYPE "; charset=" SAPI_DEFAULT_CHARSET;
591 return mimetype;
/PHP_TRUNK/sapi/apache_hooks/
H A Dmod_php7.c628 char *mimetype; local
634 mimetype = pstrdup(r->pool, tmpmimetype);
637 mimetype = SAPI_DEFAULT_MIMETYPE "; charset=" SAPI_DEFAULT_CHARSET;
639 return mimetype;

Completed in 17 milliseconds