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

/PHP_TRUNK/ext/fileinfo/libmagic/
H A Dfile.h307 char mimetype[MAXMIME]; /* MIME type */ member in struct:magic
H A Dapprentice.c829 * description/mimetype.
834 *ml->magic[magindex].mimetype == '\0')
840 ml->magic[magindex].mimetype);
1064 me[i].mp->mimetype,
1065 me[i].mp->mimetype[0] == '\0' ? "" : "; ",
1954 m->mimetype[0] = '\0'; /* initialise MIME type to none */
2030 "`%.8s', new type `%s'", m->mimetype, l);
2063 if (m->mimetype[0] != '\0') {
2065 " new type `%s'", m->mimetype, l);
2072 i < sizeof(m->mimetype);
[all...]
H A Dsoftmagic.c2294 if ((ms->flags & MAGIC_MIME_TYPE) && m->mimetype[0]) {
2295 if (file_printf(ms, "%s", m->mimetype) == -1)
/PHP_TRUNK/ext/curl/
H A Dcurl_file.c55 /* {{{ proto void CURLFile::__construct(string $name, [string $mimetype [, string $postfilename]])
64 /* {{{ proto CURLFile curl_file_create(string $name, [string $mimetype [, string $postfilename]])
145 ZEND_ARG_INFO(0, mimetype)
H A Dinterface.c427 ZEND_ARG_INFO(0, mimetype)
/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/ext/phar/
H A Dphar.c3349 #define PHAR_SET_MIME(mimetype, ret, fileext) \
3350 mime.mime = mimetype; \
3351 mime.len = sizeof((mimetype))+1; \
/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 32 milliseconds