Home
last modified time | relevance | path

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

/PHP-5.6/sapi/cli/
H A Dphp_cli_server.c206 const char *mime_type; member
475 return pair->mime_type; in get_mime_type()
2086 const char *mime_type = get_mime_type(client->request.ext, client->request.ext_len); in php_cli_server_begin_send_static() local
2087 if (!mime_type) { in php_cli_server_begin_send_static()
2088 mime_type = "application/octet-stream"; in php_cli_server_begin_send_static()
2099 smart_str_appends_ex(&buffer, mime_type, 1); in php_cli_server_begin_send_static()
2100 if (strncmp(mime_type, "text/", 5) == 0) { in php_cli_server_begin_send_static()
/PHP-5.6/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()
567 char *fname, *path_info, *mime_type = NULL, *entry, *pt; in PHP_METHOD() local
842 mime_type = ""; in PHP_METHOD()
853 mime_type = Z_STRVAL_PP(val); in PHP_METHOD()
867 if (!mime_type) { in PHP_METHOD()
868 code = phar_file_type(&PHAR_G(mime_types), entry, &mime_type TSRMLS_CC); in PHP_METHOD()
[all …]

Completed in 32 milliseconds