Home
last modified time | relevance | path

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

/php-src/ext/fileinfo/tests/
H A Dgh13344.phpt8 $mime_type = (new finfo(FILEINFO_MIME))->buffer($data);
9 echo $mime_type;
/php-src/ext/curl/
H A Dcurl_file.stub.php12 …public function __construct(string $filename, ?string $mime_type = null, ?string $posted_filename … argument
24 public function setMimeType(string $mime_type): void {} argument
H A Dcurl_file_arginfo.h6 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, mime_type, IS_STRING, 1, "null")
18 ZEND_ARG_TYPE_INFO(0, mime_type, IS_STRING, 0)
H A Dcurl.stub.php3692 function curl_file_create(string $filename, ?string $mime_type = null, ?string $posted_filename = n… argument
H A Dcurl_arginfo.h39 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, mime_type, IS_STRING, 1, "null")
/php-src/sapi/cli/
H A Dmime_type_map.h25 const char *mime_type; member
H A Dphp_cli_server.c2189 const char *mime_type = get_mime_type(server, client->request.ext, client->request.ext_len); in php_cli_server_begin_send_static() local
2198 if (mime_type) { in php_cli_server_begin_send_static()
2200 smart_str_appends_ex(&buffer, mime_type, 1); in php_cli_server_begin_send_static()
2201 if (strncmp(mime_type, "text/", 5) == 0) { in php_cli_server_begin_send_static()
2367 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-src/ext/phar/
H A Dphar_object.c37 static int phar_file_type(HashTable *mimes, char *file, char **mime_type) /* {{{ */ in phar_file_type() argument
43 *mime_type = "text/plain"; in phar_file_type()
49 *mime_type = "application/octet-stream"; in phar_file_type()
52 *mime_type = mime->mime; in phar_file_type()
179 ctr.line_len = spprintf((char **) &(ctr.line), 0, "Content-type: %s", mime_type); in phar_file_action()
556 char *fname, *path_info, *mime_type = NULL, *entry, *pt; in PHP_METHOD() local
827 mime_type = ""; in PHP_METHOD()
843 mime_type = Z_STRVAL_P(val); in PHP_METHOD()
862 if (!mime_type) { in PHP_METHOD()
863 code = phar_file_type(&PHAR_G(mime_types), entry, &mime_type); in PHP_METHOD()
[all …]

Completed in 37 milliseconds