Home
last modified time | relevance | path

Searched refs:mime (Results 1 – 25 of 73) sorted by path

123

/PHP-7.4/
H A DNEWS1433 . Fixed bug #78183 (finfo_file shows wrong mime-type for .tga file).
/PHP-7.4/ext/curl/
H A Dcurl_file.c33 zend_string *fname, *mime = NULL, *postname = NULL; in curlfile_ctor() local
39 Z_PARAM_STR(mime) in curlfile_ctor()
45 if (mime) { in curlfile_ctor()
46 zend_update_property_string(curl_CURLFile_class, cf, "mime", sizeof("mime")-1, ZSTR_VAL(mime)); in curlfile_ctor()
H A Dinterface.c2161 curl_mime *mime = NULL; in build_mime_structure_from_hash() local
2178 mime = curl_mime_init(ch->cp); in build_mime_structure_from_hash()
2179 if (mime == NULL) { in build_mime_structure_from_hash()
2246 part = curl_mime_addpart(mime); in build_mime_structure_from_hash()
2280 part = curl_mime_addpart(mime); in build_mime_structure_from_hash()
2319 zend_llist_add_element(&ch->to_free->post, &mime); in build_mime_structure_from_hash()
2320 error = curl_easy_setopt(ch->cp, CURLOPT_MIMEPOST, mime); in build_mime_structure_from_hash()
/PHP-7.4/ext/curl/tests/
H A Dcurl_file_upload.phpt8 function testcurl($ch, $name, $mime = '', $postname = '')
11 $file = new CurlFile($name, $mime, $postname);
12 } else if(!empty($mime)) {
13 $file = new CurlFile($name, $mime);
/PHP-7.4/ext/fileinfo/
H A Dlibmagic.patch1956 - else if (!mime) {
2042 - if (mime) {
2060 - if (mime) {
2079 + if (mime) {
2106 - if (mime) {
2149 - if (mime) {
2187 - if (mime) {
2188 - if (handle_mime(ms, mime,
2220 - if (mime) {
3156 return cv[i].mime;
[all …]
H A Dmagicdata.patch27 -!:mime audio/mpeg
29 -!:mime audio/mpeg
31 -!:mime audio/mpeg
33 -!:mime audio/mpeg
35 -!:mime audio/mpeg
37 -!:mime audio/mpeg
39 -!:mime audio/mpeg
41 -!:mime audio/mpeg
43 -!:mime audio/mpeg
45 -!:mime audio/mpeg
[all …]
/PHP-7.4/ext/fileinfo/libmagic/
H A Dapprentice.c172 DECLARE_FIELD(mime),
H A Dascmagic.c115 int mime = ms->flags & MAGIC_MIME; in file_ascmagic_with_encoding() local
213 if (mime) { in file_ascmagic_with_encoding()
214 if ((mime & MAGIC_MIME_TYPE) != 0) { in file_ascmagic_with_encoding()
H A Dcompress.c203 int mime = ms->flags & MAGIC_MIME; in format_decompression_error() local
205 if (!mime) in format_decompression_error()
224 int mime = ms->flags & MAGIC_MIME; in file_zmagic() local
275 if (mime != MAGIC_MIME && mime != 0) in file_zmagic()
278 mime ? " compressed-encoding=" : " (")) == -1) in file_zmagic()
298 if (!mime && file_printf(ms, ")") == -1) in file_zmagic()
H A Dfsmagic.c77 if ((mime & MAGIC_MIME_TYPE)) { in handle_mime()
93 int mime = ms->flags & MAGIC_MIME; in file_fsmagic() local
114 if (!mime && !silent) { in file_fsmagic()
145 if (mime) { in file_fsmagic()
174 if (mime) { in file_fsmagic()
175 if (handle_mime(ms, mime, "fifo") == -1) in file_fsmagic()
184 if (mime) { in file_fsmagic()
185 if (handle_mime(ms, mime, "door") == -1) in file_fsmagic()
205 if (mime) { in file_fsmagic()
228 if (mime) { in file_fsmagic()
[all …]
H A Dis_json.c392 int mime = ms->flags & MAGIC_MIME; in file_is_json() local
403 if (mime == MAGIC_MIME_ENCODING) in file_is_json()
405 if (mime) { in file_is_json()
H A Dis_tar.c72 int mime = ms->flags & MAGIC_MIME; in file_is_tar() local
81 if (mime == MAGIC_MIME_ENCODING) in file_is_tar()
84 if (file_printf(ms, "%s", mime ? "application/x-tar" : in file_is_tar()
H A Dreadcdf.c50 const char *mime; member
80 const char *mime; member
103 for (i = 0; cv[i].mime != NULL; i++) { in cdf_clsid_to_mime()
105 return cv[i].mime; in cdf_clsid_to_mime()
127 rv = nv[i].mime; in cdf_app_to_mime()
427 const char *mime; member
523 if (file_printf(ms, "application/%s", si->mime) == -1) in cdf_file_dir_info()
/PHP-7.4/ext/fileinfo/tests/
H A Dbug68731.phpt2 Bug #68731 finfo_buffer doesn't extract the correct mime with some gifs
H A Dbug77961.magic3 !:mime text/x-srt
17 !:mime application/x-java-pack200
22 !:mime text/x-objective-c
H A Dbug79756.phpt11 $mime = finfo_file($finfo, $filename);
13 echo $mime;
H A Dfinfo_file_002.phpt2 finfo_file(): Testing mime types
H A Dmagic608 !:mime image/jp2
648 !:mime video/mp4
663 !:mime video/mp4
678 !:mime video/mp4
680 !:mime video/mp4
682 !:mime audio/mp4
684 !:mime audio/mp4
688 !:mime video/mp4
690 !:mime video/mp4
692 !:mime image/jp2
[all …]
H A Dmagic私はガラスを食べられます608 !:mime image/jp2
648 !:mime video/mp4
663 !:mime video/mp4
678 !:mime video/mp4
680 !:mime video/mp4
682 !:mime audio/mp4
684 !:mime audio/mp4
688 !:mime video/mp4
690 !:mime video/mp4
692 !:mime image/jp2
[all …]
/PHP-7.4/ext/iconv/tests/
H A Diconv_mime_decode_headers.phpt85 string(54) "[PHP-DEV] [ICONV] test for iconv mime decode headers()"
/PHP-7.4/ext/phar/
H A Dphar.c3363 phar_mime_type mime; in PHP_GINIT_FUNCTION() local
3374 mime.mime = mimetype; \ in PHP_GINIT_FUNCTION()
3375 mime.len = sizeof((mimetype))+1; \ in PHP_GINIT_FUNCTION()
3376 mime.type = ret; \ in PHP_GINIT_FUNCTION()
3377 …zend_hash_str_add_mem(&phar_globals->mime_types, fileext, sizeof(fileext)-1, (void *)&mime, sizeof… in PHP_GINIT_FUNCTION()
H A Dphar_internal.h438 char *mime; member
H A Dphar_object.c31 phar_mime_type *mime; in phar_file_type() local
39 if (NULL == (mime = zend_hash_str_find_ptr(mimes, ext, strlen(ext)))) { in phar_file_type()
43 *mime_type = mime->mime; in phar_file_type()
44 return mime->type; in phar_file_type()
/PHP-7.4/ext/phar/tests/cache_list/
H A Dfrontcontroller11.phpt2 Phar front controller mime type extension is not a string [cache_list]
H A Dfrontcontroller12.phpt2 Phar front controller mime type unknown int [cache_list]
17 Fatal error: Uncaught PharException: Unknown mime type specifier used, only Phar::PHP, Phar::PHPS a…

Completed in 208 milliseconds

123