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/mbstring/
H A Dmbstring.c2117 char *s, *mimetype = NULL; local
2138 if (SG(sapi_headers).mimetype &&
2141 SG(sapi_headers).mimetype,
2142 strlen(SG(sapi_headers).mimetype))) {
2143 if ((s = strchr(SG(sapi_headers).mimetype,';')) == NULL){
2144 mimetype = estrdup(SG(sapi_headers).mimetype);
2146 mimetype = estrndup(SG(sapi_headers).mimetype,s-SG(sapi_headers).mimetype);
[all...]
/PHP_TRUNK/main/
H A DSAPI.h63 char *mimetype; member in struct:__anon283
209 SAPI_API size_t sapi_apply_default_charset(char **mimetype, size_t len TSRMLS_DC);
H A DSAPI.c309 char *mimetype, *charset, *content_type; local
313 mimetype = SG(default_mimetype);
316 mimetype = SAPI_DEFAULT_MIMETYPE;
327 if (*charset && strncasecmp(mimetype, "text/", 5) == 0) {
333 memcpy(p, mimetype, mimetype_len);
341 memcpy(content_type + prefix_len, mimetype, mimetype_len + 1);
369 * If "mimetype" is non-NULL, it should point to a pointer allocated
371 * re-allocated and the new length is returned. If mimetype is
375 SAPI_API size_t sapi_apply_default_charset(char **mimetype, size_t len TSRMLS_DC) argument
381 if (*mimetype !
783 char *ptr = colon_offset+1, *mimetype = NULL, *newheader; local
[all...]
/PHP_TRUNK/sapi/apache/
H A Dmod_php7.c581 char *mimetype; local
587 mimetype = pstrdup(r->pool, tmpmimetype);
590 mimetype = SAPI_DEFAULT_MIMETYPE "; charset=" SAPI_DEFAULT_CHARSET;
592 return mimetype;
/PHP_TRUNK/sapi/apache_hooks/
H A Dmod_php7.c629 char *mimetype; local
635 mimetype = pstrdup(r->pool, tmpmimetype);
638 mimetype = SAPI_DEFAULT_MIMETYPE "; charset=" SAPI_DEFAULT_CHARSET;
640 return mimetype;
/PHP_TRUNK/ext/iconv/
H A Diconv.c396 char *s, *content_type, *mimetype = NULL; local
406 if (SG(sapi_headers).mimetype && !strncasecmp(SG(sapi_headers).mimetype, "text/", 5)) {
407 if ((s = strchr(SG(sapi_headers).mimetype,';')) == NULL){
408 mimetype = SG(sapi_headers).mimetype;
410 mimetype = SG(sapi_headers).mimetype;
411 mimetype_len = (int)(s - SG(sapi_headers).mimetype);
414 mimetype
[all...]

Completed in 17 milliseconds