Home
last modified time | relevance | path

Searched refs:mimetype (Results 1 – 18 of 18) sorted by relevance

/PHP-5.3/main/
H A Dphp_logos.c28 const char *mimetype; member
36 PHPAPI int php_register_info_logo(char *logo_string, const char *mimetype, const unsigned char *dat… in php_register_info_logo() argument
40 info_logo.mimetype = mimetype; in php_register_info_logo()
41 info_logo.mimelen = strlen(mimetype); in php_register_info_logo()
84 …memcpy(content_header + sizeof(CONTENT_TYPE_HEADER) - 1 , logo_image->mimetype, logo_image->mimele… in php_info_logos()
H A DSAPI.c242 content_type = estrdup(mimetype); in sapi_get_default_content_type()
278 if (*mimetype != NULL) { in sapi_apply_default_charset()
279 if (*charset && strncmp(*mimetype, "text/", 5) == 0 && strstr(*mimetype, "charset=") == NULL) { in sapi_apply_default_charset()
285 efree(*mimetype); in sapi_apply_default_charset()
286 *mimetype = newtype; in sapi_apply_default_charset()
304 SG(sapi_headers).mimetype = NULL; in sapi_activate_headers_only()
347 SG(sapi_headers).mimetype = NULL; in sapi_activate()
452 if (SG(sapi_headers).mimetype) { in sapi_deactivate()
682 mimetype = estrdup(ptr); in sapi_header_op()
685 SG(sapi_headers).mimetype = estrdup(mimetype); in sapi_header_op()
[all …]
H A Dphp_logos.h26 PHPAPI int php_register_info_logo(char *logo_string, const char *mimetype, const unsigned char *dat…
H A DSAPI.h61 char *mimetype; member
202 SAPI_API size_t sapi_apply_default_charset(char **mimetype, size_t len TSRMLS_DC);
/PHP-5.3/ext/zip/tests/
H A Dbug7658.phpt11 "mimetype",
/PHP-5.3/ext/fileinfo/libmagic/
H A Dapprentice.c564 *ml->magic[magindex].mimetype == '\0') in apprentice_list()
570 ml->magic[magindex].mimetype); in apprentice_list()
839 marray[i].mp->mimetype,
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); m->mimetype[i++] = *l++)
1667 if (i == sizeof(m->mimetype)) {
1668 m->mimetype[sizeof(m->mimetype) - 1] = '\0';
1671 SIZE_T_FORMAT "u", m->mimetype, i);
[all …]
H A Dfile.h291 char mimetype[MAXDESC]; /* MIME type */ member
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; in PHP_FUNCTION() local
2353 if (SG(sapi_headers).mimetype && in PHP_FUNCTION()
2354 strncasecmp(SG(sapi_headers).mimetype, "text/", 5) == 0) { in PHP_FUNCTION()
2355 if ((s = strchr(SG(sapi_headers).mimetype,';')) == NULL){ in PHP_FUNCTION()
2356 mimetype = SG(sapi_headers).mimetype; in PHP_FUNCTION()
2358 mimetype = estrndup(SG(sapi_headers).mimetype, s-SG(sapi_headers).mimetype); in PHP_FUNCTION()
2362 mimetype =(SG(default_mimetype) ? SG(default_mimetype) : SAPI_DEFAULT_MIMETYPE); in PHP_FUNCTION()
2364 if (mimetype != NULL) { in PHP_FUNCTION()
2375 …len = spprintf(&content_type, 0, "Content-Type:%s; charset=%s", mimetype, ICONVG(output_encoding)); in PHP_FUNCTION()
2381 efree(mimetype); in PHP_FUNCTION()
[all …]
/PHP-5.3/sapi/apache/
H A Dmod_php5.c583 char *mimetype; in php_apache_get_default_mimetype() local
589 mimetype = pstrdup(r->pool, tmpmimetype); in php_apache_get_default_mimetype()
592 mimetype = SAPI_DEFAULT_MIMETYPE "; charset=" SAPI_DEFAULT_CHARSET; in php_apache_get_default_mimetype()
594 return mimetype; in php_apache_get_default_mimetype()
/PHP-5.3/ext/mbstring/
H A Dmbstring.c1930 char *s, *mimetype = NULL; in PHP_FUNCTION() local
1951 if (SG(sapi_headers).mimetype && in PHP_FUNCTION()
1954 SG(sapi_headers).mimetype, in PHP_FUNCTION()
1955 strlen(SG(sapi_headers).mimetype))) { in PHP_FUNCTION()
1956 if ((s = strchr(SG(sapi_headers).mimetype,';')) == NULL){ in PHP_FUNCTION()
1957 mimetype = estrdup(SG(sapi_headers).mimetype); in PHP_FUNCTION()
1959 mimetype = estrndup(SG(sapi_headers).mimetype,s-SG(sapi_headers).mimetype); in PHP_FUNCTION()
1963 mimetype = SG(default_mimetype) ? SG(default_mimetype) : SAPI_DEFAULT_MIMETYPE; in PHP_FUNCTION()
1970 len = spprintf( &p, 0, "Content-Type: %s; charset=%s", mimetype, charset ); in PHP_FUNCTION()
1978 efree(mimetype); in PHP_FUNCTION()
/PHP-5.3/sapi/apache_hooks/
H A Dmod_php5.c634 char *mimetype; in php_apache_get_default_mimetype() local
640 mimetype = pstrdup(r->pool, tmpmimetype); in php_apache_get_default_mimetype()
643 mimetype = SAPI_DEFAULT_MIMETYPE "; charset=" SAPI_DEFAULT_CHARSET; in php_apache_get_default_mimetype()
645 return mimetype; in php_apache_get_default_mimetype()
/PHP-5.3/ext/phar/
H A Dphar.c3478 #define PHAR_SET_MIME(mimetype, ret, fileext) \ argument
3479 mime.mime = mimetype; \
3480 mime.len = sizeof((mimetype))+1; \
/PHP-5.3/ext/fileinfo/
H A Dlibmagic.patch521 m->mimetype[0] = '\0'; /* initialise MIME type to none */
/PHP-5.3/
H A Dphp.ini-development779 ; http://php.net/default-mimetype
H A Dphp.ini-production779 ; http://php.net/default-mimetype
H A DNEWS3107 - Fixed bug #47359 (Use the expected unofficial mimetype for bmp files). (Scott)
3956 - Fixed bug #43295 (crash because of uninitialized SG(sapi_headers).mimetype). (Dmitry)
/PHP-5.3/ext/fileinfo/tests/
H A Dmagic1996 >30 string mimetype

Completed in 145 milliseconds