Searched defs:mime (Results 1 - 11 of 11) sorted by relevance

/PHP_TRUNK/sapi/cli/
H A Dgenerate_mime_type_map.php4 // Check if we are being given a mime.types file or if we should use the
6 $source = count($_SERVER['argv']) > 1 ? $_SERVER['argv'][1] : 'https://raw.githubusercontent.com/apache/httpd/trunk/docs/conf/mime.types';
22 $mime = array_shift($fields); variable
24 $extensions[$extension] = $mime;
61 <?php foreach ($extensions as $extension => $mime): ?>
62 { "<?= addcslashes($extension, "\0..\37!@\@\177..\377") ?>", "<?= addcslashes($mime, "\0..\37!@\@\177..\377") ?>" },
/PHP_TRUNK/ext/curl/
H A Dcurl_file.c34 char *fname = NULL, *mime = NULL, *postname = NULL; local
38 if (zend_parse_parameters(ZEND_NUM_ARGS(), "s|ss", &fname, &fname_len, &mime, &mime_len, &postname, &postname_len) == FAILURE) {
46 if (mime) {
47 zend_update_property_string(curl_CURLFile_class, cf, "mime", sizeof("mime")-1, mime);
107 curlfile_get_property("mime", INTERNAL_FUNCTION_PARAM_PASSTHRU);
119 /* {{{ proto void CURLFile::setMimeType(string $mime)
123 curlfile_set_property("mime", INTERNAL_FUNCTION_PARAM_PASSTHRU);
172 zend_declare_property_string(curl_CURLFile_class, "mime", sizeo
[all...]
/PHP_TRUNK/ext/fileinfo/libmagic/
H A Dascmagic.c108 int mime = ms->flags & MAGIC_MIME; local
196 if (mime) {
197 if (!file_printedlen(ms) && (mime & MAGIC_MIME_TYPE) != 0) {
H A Dfsmagic.c82 handle_mime(struct magic_set *ms, int mime, const char *str) argument
84 if ((mime & MAGIC_MIME_TYPE)) {
87 if ((mime & MAGIC_MIME_ENCODING) && file_printf(ms,
91 if ((mime & MAGIC_MIME_ENCODING) && file_printf(ms, "binary") == -1)
100 int mime = ms->flags & MAGIC_MIME; local
132 if (!mime) {
163 if (mime) {
164 if (handle_mime(ms, mime, "chardevice") == -1)
192 if (mime) {
193 if (handle_mime(ms, mime, "fif
[all...]
H A Dfuncs.c169 int mime = ms->flags & MAGIC_MIME; local
274 if ((!mime || (mime & MAGIC_MIME_TYPE)) &&
275 file_printf(ms, "%s", mime ? type : def) == -1) {
H A Dis_tar.c70 int mime = ms->flags & MAGIC_MIME; local
79 if (file_printf(ms, "%s", mime ? "application/x-tar" :
H A Dcompress.c114 int mime = ms->flags & MAGIC_MIME; local
136 if (mime == MAGIC_MIME || mime == 0) {
137 if (file_printf(ms, mime ?
142 if (!mime && file_printf(ms, ")") == -1)
H A Dreadcdf.c56 const char *mime; member in struct:nv
86 const char *mime; member in struct:cv
109 for (i = 0; cv[i].mime != NULL; i++) {
111 return cv[i].mime;
125 rv = nv[i].mime;
376 const char *mime; member in struct:sinfo
432 si->mime) == -1)
/PHP_TRUNK/ext/phar/
H A Dphar_object.c42 phar_mime_type *mime; local
50 if (NULL == (mime = zend_hash_str_find_ptr(mimes, ext, strlen(ext)))) {
54 *mime_type = mime->mime;
55 return mime->type;
821 zend_throw_exception_ex(phar_ce_PharException, 0, "Unknown mime type specifier used, only Phar::PHP, Phar::PHPS and a mime type string are allowed");
838 zend_throw_exception_ex(phar_ce_PharException, 0, "Unknown mime type specifier used (not a string or int), only Phar::PHP, Phar::PHPS and a mime type string are allowed");
H A Dphar_internal.h461 char *mime; member in struct:_phar_mime_type
H A Dphar.c3341 phar_mime_type mime; local
3349 mime.mime = mimetype; \
3350 mime.len = sizeof((mimetype))+1; \
3351 mime.type = ret; \
3352 zend_hash_str_add_mem(&phar_globals->mime_types, fileext, sizeof(fileext)-1, (void *)&mime, sizeof(phar_mime_type)); \

Completed in 51 milliseconds