Home
last modified time | relevance | path

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

/PHP-7.1/sapi/cli/
H A Dmime_type_map.h27 const char *mime_type; member
H A Dphp_cli_server.c2063 const char *mime_type = get_mime_type(server, client->request.ext, client->request.ext_len); in php_cli_server_begin_send_static() local
2064 if (!mime_type) { in php_cli_server_begin_send_static()
2065 mime_type = "application/octet-stream"; in php_cli_server_begin_send_static()
2076 smart_str_appends_ex(&buffer, mime_type, 1); in php_cli_server_begin_send_static()
2077 if (strncmp(mime_type, "text/", 5) == 0) { in php_cli_server_begin_send_static()
2236 zend_hash_str_add_ptr(&server->extension_mime_types, pair->ext, ext_len, (void*)pair->mime_type); in php_cli_server_mime_type_ctor()
/PHP-7.1/ext/phar/
H A Dphar_object.c30 static int phar_file_type(HashTable *mimes, char *file, char **mime_type) /* {{{ */ in phar_file_type() argument
36 *mime_type = "text/plain"; in phar_file_type()
42 *mime_type = "application/octet-stream"; in phar_file_type()
45 *mime_type = mime->mime; in phar_file_type()
172 ctr.line_len = spprintf(&(ctr.line), 0, "Content-type: %s", mime_type); in phar_file_action()
544 char *fname, *path_info, *mime_type = NULL, *entry, *pt; in PHP_METHOD() local
836 mime_type = ""; in PHP_METHOD()
852 mime_type = Z_STRVAL_P(val); in PHP_METHOD()
871 if (!mime_type) { in PHP_METHOD()
872 code = phar_file_type(&PHAR_G(mime_types), entry, &mime_type); in PHP_METHOD()
[all …]

Completed in 43 milliseconds