Searched refs:mimetype_len (Results 1 - 2 of 2) sorted by relevance

/PHP_TRUNK/main/
H A DSAPI.c310 uint mimetype_len, charset_len; local
314 mimetype_len = (uint)strlen(SG(default_mimetype));
317 mimetype_len = sizeof(SAPI_DEFAULT_MIMETYPE) - 1;
330 *len = prefix_len + mimetype_len + sizeof("; charset=") - 1 + charset_len;
333 memcpy(p, mimetype, mimetype_len);
334 p += mimetype_len;
339 *len = prefix_len + mimetype_len;
341 memcpy(content_type + prefix_len, mimetype, mimetype_len + 1);
/PHP_TRUNK/ext/iconv/
H A Diconv.c397 int output_status, mimetype_len = 0; local
411 mimetype_len = (int)(s - SG(sapi_headers).mimetype);
422 len = spprintf(&content_type, 0, "Content-Type:%.*s; charset=%.*s", mimetype_len ? mimetype_len : (size_t) strlen(mimetype), mimetype, (size_t)(p - get_output_encoding(TSRMLS_C)), get_output_encoding(TSRMLS_C));
424 len = spprintf(&content_type, 0, "Content-Type:%.*s; charset=%s", mimetype_len ? mimetype_len : (size_t) strlen(mimetype), mimetype, get_output_encoding(TSRMLS_C));

Completed in 8 milliseconds