Home
last modified time | relevance | path

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

/PHP-5.5/sapi/cli/tests/
H A Dbug61977.phpt19 foreach ($mimetypes as $mimetype) {
24 file_put_contents(__DIR__ . "/foo.{$mimetype}", '');
26 GET /foo.{$mimetype} HTTP/1.1
35 echo "foo.{$mimetype} => ", $text;
38 @unlink(__DIR__ . "/foo.{$mimetype}");
/PHP-5.5/main/
H A DSAPI.c301 mimetype = SG(default_mimetype); in get_default_content_type()
369 if (*mimetype != NULL) { in sapi_apply_default_charset()
370 if (*charset && strncmp(*mimetype, "text/", 5) == 0 && strstr(*mimetype, "charset=") == NULL) { in sapi_apply_default_charset()
376 efree(*mimetype); in sapi_apply_default_charset()
377 *mimetype = newtype; in sapi_apply_default_charset()
395 SG(sapi_headers).mimetype = NULL; in sapi_activate_headers_only()
438 SG(sapi_headers).mimetype = NULL; in sapi_activate()
541 if (SG(sapi_headers).mimetype) { in sapi_deactivate()
792 mimetype = estrdup(ptr); in sapi_header_op()
795 SG(sapi_headers).mimetype = estrdup(mimetype); in sapi_header_op()
[all …]
H A DSAPI.h61 char *mimetype; member
205 SAPI_API size_t sapi_apply_default_charset(char **mimetype, size_t len TSRMLS_DC);
/PHP-5.5/ext/zip/tests/
H A Dbug7658.phpt11 "mimetype",
/PHP-5.5/ext/iconv/
H A Diconv.c334 char *s, *content_type, *mimetype = NULL; in php_iconv_output_handler() local
344 if (SG(sapi_headers).mimetype && !strncasecmp(SG(sapi_headers).mimetype, "text/", 5)) { in php_iconv_output_handler()
345 if ((s = strchr(SG(sapi_headers).mimetype,';')) == NULL){ in php_iconv_output_handler()
346 mimetype = SG(sapi_headers).mimetype; in php_iconv_output_handler()
348 mimetype = SG(sapi_headers).mimetype; in php_iconv_output_handler()
349 mimetype_len = s - SG(sapi_headers).mimetype; in php_iconv_output_handler()
352 mimetype = SG(default_mimetype) ? SG(default_mimetype) : SAPI_DEFAULT_MIMETYPE; in php_iconv_output_handler()
355 if (mimetype != NULL && !(output_context->op & PHP_OUTPUT_HANDLER_CLEAN)) { in php_iconv_output_handler()
360 …pe:%.*s; charset=%.*s", mimetype_len ? mimetype_len : (int) strlen(mimetype), mimetype, (int)(p - … in php_iconv_output_handler()
362 …Type:%.*s; charset=%s", mimetype_len ? mimetype_len : (int) strlen(mimetype), mimetype, ICONVG(out… in php_iconv_output_handler()
/PHP-5.5/ext/fileinfo/libmagic/
H A Dapprentice.c819 *ml->magic[magindex].mimetype == '\0') in apprentice_list()
825 ml->magic[magindex].mimetype); in apprentice_list()
1054 me[i].mp->mimetype, in set_text_binary()
2023 "`%.8s', new type `%s'", m->mimetype, l); in parse_apple()
2056 if (m->mimetype[0] != '\0') { in parse_mime()
2058 " new type `%s'", m->mimetype, l); in parse_mime()
2065 i < sizeof(m->mimetype); m->mimetype[i++] = *l++) in parse_mime()
2067 if (i == sizeof(m->mimetype)) { in parse_mime()
2068 m->mimetype[sizeof(m->mimetype) - 1] = '\0'; in parse_mime()
2071 SIZE_T_FORMAT "u", m->mimetype, i); in parse_mime()
[all …]
H A Dfile.h307 char mimetype[MAXMIME]; /* MIME type */ member
H A Dsoftmagic.c2303 if ((ms->flags & MAGIC_MIME_TYPE) && m->mimetype[0]) { in handle_annotation()
2304 if (file_printf(ms, "%s", m->mimetype) == -1) in handle_annotation()
/PHP-5.5/ext/curl/
H A Dcurl_file.c147 ZEND_ARG_INFO(0, mimetype)
H A Dinterface.c426 ZEND_ARG_INFO(0, mimetype)
/PHP-5.5/sapi/apache/
H A Dmod_php5.c579 char *mimetype; in php_apache_get_default_mimetype() local
585 mimetype = pstrdup(r->pool, tmpmimetype); in php_apache_get_default_mimetype()
588 mimetype = SAPI_DEFAULT_MIMETYPE "; charset=" SAPI_DEFAULT_CHARSET; in php_apache_get_default_mimetype()
590 return mimetype; in php_apache_get_default_mimetype()
/PHP-5.5/ext/mbstring/
H A Dmbstring.c2099 char *s, *mimetype = NULL; in PHP_FUNCTION() local
2120 if (SG(sapi_headers).mimetype && in PHP_FUNCTION()
2123 SG(sapi_headers).mimetype, in PHP_FUNCTION()
2124 strlen(SG(sapi_headers).mimetype))) { in PHP_FUNCTION()
2125 if ((s = strchr(SG(sapi_headers).mimetype,';')) == NULL){ in PHP_FUNCTION()
2126 mimetype = estrdup(SG(sapi_headers).mimetype); in PHP_FUNCTION()
2128 mimetype = estrndup(SG(sapi_headers).mimetype,s-SG(sapi_headers).mimetype); in PHP_FUNCTION()
2132 mimetype = SG(default_mimetype) ? SG(default_mimetype) : SAPI_DEFAULT_MIMETYPE; in PHP_FUNCTION()
2139 len = spprintf( &p, 0, "Content-Type: %s; charset=%s", mimetype, charset ); in PHP_FUNCTION()
2147 efree(mimetype); in PHP_FUNCTION()
/PHP-5.5/sapi/apache_hooks/
H A Dmod_php5.c629 char *mimetype; in php_apache_get_default_mimetype() local
635 mimetype = pstrdup(r->pool, tmpmimetype); in php_apache_get_default_mimetype()
638 mimetype = SAPI_DEFAULT_MIMETYPE "; charset=" SAPI_DEFAULT_CHARSET; in php_apache_get_default_mimetype()
640 return mimetype; in php_apache_get_default_mimetype()
/PHP-5.5/ext/phar/
H A Dphar.c3422 #define PHAR_SET_MIME(mimetype, ret, fileext) \ argument
3423 mime.mime = mimetype; \
3424 mime.len = sizeof((mimetype))+1; \
/PHP-5.5/ext/fileinfo/tests/
H A Dmagic2166 # Specialised zip formats which start with a member named 'mimetype'
2168 # Check for have 8-byte name, 0-byte extra field, name "mimetype", and
2176 # (mimetype contains "application/vnd.kde.<SUBTYPE>")
2188 # (mimetype contains "application/vnd.sun.xml.<SUBTYPE>")
2258 # Catch other ZIP-with-mimetype formats
2260 # always "PK". The 2 regex rules here print the "mimetype" member's
2263 # (mimetype contains "application/<OTHER>")
2270 # (mimetype contents other than "application/*")
2271 >26 string \x8\0\0\0mimetype
2283 >>26 string !\x8\0\0\0mimetype Zip archive data
[all …]
/PHP-5.5/ext/fileinfo/
H A Dlibmagic.patch556 m->mimetype[0] = '\0'; /* initialise MIME type to none */
/PHP-5.5/
H A Dphp.ini-development675 ; http://php.net/default-mimetype
H A Dphp.ini-production675 ; http://php.net/default-mimetype
H A DNEWS1980 . Fixed bug #64830 (mimetype detection segfaults on mp3 file). (Anatol)
2238 . Fixed bug #64830 (mimetype detection segfaults on mp3 file). (Anatol)
6157 - Fixed bug #47359 (Use the expected unofficial mimetype for bmp files). (Scott)
7006 - Fixed bug #43295 (crash because of uninitialized SG(sapi_headers).mimetype). (Dmitry)

Completed in 134 milliseconds