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

/PHP_TRUNK/ext/fileinfo/libmagic/
H A Dis_tar.c70 int mime = ms->flags & MAGIC_MIME; local
79 if (file_printf(ms, "%s", mime ? "application/x-tar" :
H A Dnames.h40 to add mime type strings to the types table.
61 char mime[16]; member in struct:__anon107
H A Dascmagic.c108 int mime = ms->flags & MAGIC_MIME; local
195 if (mime) {
196 if (!file_printedlen(ms) && (mime & MAGIC_MIME_TYPE) != 0) {
H A Dreadcdf.c52 const char *mime; member in struct:nv
82 const char *mime; member in struct:cv
107 for (i = 0; cv[i].mime != NULL; i++) {
109 return cv[i].mime;
123 rv = nv[i].mime;
H A Dcompress.c109 int mime = ms->flags & MAGIC_MIME; local
128 if (mime == MAGIC_MIME || mime == 0) {
129 if (file_printf(ms, mime ?
134 if (!mime && file_printf(ms, ")") == -1)
H A Dfsmagic.c78 handle_mime(struct magic_set *ms, int mime, const char *str) argument
80 if ((mime & MAGIC_MIME_TYPE)) {
83 if ((mime & MAGIC_MIME_ENCODING) && file_printf(ms,
87 if ((mime & MAGIC_MIME_ENCODING) && file_printf(ms, "binary") == -1)
96 int mime = ms->flags & MAGIC_MIME; local
129 if (!mime) {
160 if (mime) {
161 if (handle_mime(ms, mime, "chardevice") == -1)
189 if (mime) {
190 if (handle_mime(ms, mime, "fif
[all...]
H A Dfuncs.c168 int mime = ms->flags & MAGIC_MIME; local
287 if ((!mime || (mime & MAGIC_MIME_TYPE)) &&
288 file_printf(ms, "%s", mime ? type : def) == -1) {
/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/phar/
H A Dphar.c3386 phar_mime_type mime; local
3394 mime.mime = mimetype; \
3395 mime.len = sizeof((mimetype))+1; \
3396 mime.type = ret; \
3397 zend_hash_str_add_mem(&phar_globals->mime_types, fileext, sizeof(fileext)-1, (void *)&mime, sizeof(phar_mime_type)); \
H A Dphar_internal.h458 char *mime; member in struct:_phar_mime_type
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;
819 zend_throw_exception_ex(phar_ce_PharException, 0 TSRMLS_CC, "Unknown mime type specifier used, only Phar::PHP, Phar::PHPS and a mime type string are allowed");
831 zend_throw_exception_ex(phar_ce_PharException, 0 TSRMLS_CC, "Unknown mime type specifier used (not a string or int), only Phar::PHP, Phar::PHPS and a mime type string are allowed");
/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() TSRMLS_CC, "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 TSRMLS_CC);
106 curlfile_get_property("mime", INTERNAL_FUNCTION_PARAM_PASSTHRU);
118 /* {{{ proto void CURLFile::setMimeType(string $mime)
122 curlfile_set_property("mime", INTERNAL_FUNCTION_PARAM_PASSTHRU);
171 zend_declare_property_string(curl_CURLFile_class, "mime", sizeo
[all...]

Completed in 22 milliseconds