Home
last modified time | relevance | path

Searched refs:mime_type (Results 1 – 2 of 2) sorted by relevance

/PHP-5.5/sapi/cli/
H A Dphp_cli_server.c206 const char *mime_type; member
474 return pair->mime_type; in get_mime_type()
2058 const char *mime_type = get_mime_type(client->request.ext, client->request.ext_len); in php_cli_server_begin_send_static() local
2059 if (!mime_type) { in php_cli_server_begin_send_static()
2060 mime_type = "application/octet-stream"; in php_cli_server_begin_send_static()
2071 smart_str_appends_ex(&buffer, mime_type, 1); in php_cli_server_begin_send_static()
2072 if (strncmp(mime_type, "text/", 5) == 0) { in php_cli_server_begin_send_static()
/PHP-5.5/ext/phar/
H A Dphar_object.c39 static int phar_file_type(HashTable *mimes, char *file, char **mime_type TSRMLS_DC) /* {{{ */ in phar_file_type()
45 *mime_type = "text/plain"; in phar_file_type()
51 *mime_type = "application/octet-stream"; in phar_file_type()
54 *mime_type = mime->mime; in phar_file_type()
200 ctr.line_len = spprintf(&(ctr.line), 0, "Content-type: %s", mime_type); in phar_file_action()
569 char *fname, *path_info, *mime_type = NULL, *entry, *pt; in PHP_METHOD() local
844 mime_type = ""; in PHP_METHOD()
855 mime_type = Z_STRVAL_PP(val); in PHP_METHOD()
869 if (!mime_type) { in PHP_METHOD()
870 code = phar_file_type(&PHAR_G(mime_types), entry, &mime_type TSRMLS_CC); in PHP_METHOD()
[all …]

Completed in 42 milliseconds