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

/PHP_TRUNK/ext/iconv/
H A Diconv.c400 int output_status, mimetype_len = 0; local
414 mimetype_len = s - SG(sapi_headers).mimetype;
425 len = spprintf(&content_type, 0, "Content-Type:%.*s; charset=%.*s", mimetype_len ? mimetype_len : (int) strlen(mimetype), mimetype, (int)(p - get_output_encoding(TSRMLS_C)), get_output_encoding(TSRMLS_C));
427 len = spprintf(&content_type, 0, "Content-Type:%.*s; charset=%s", mimetype_len ? mimetype_len : (int) strlen(mimetype), mimetype, get_output_encoding(TSRMLS_C));
/PHP_TRUNK/main/
H A DSAPI.c314 uint mimetype_len, charset_len; local
318 mimetype_len = strlen(SG(default_mimetype));
321 mimetype_len = sizeof(SAPI_DEFAULT_MIMETYPE) - 1;
334 *len = prefix_len + mimetype_len + sizeof("; charset=") - 1 + charset_len;
337 memcpy(p, mimetype, mimetype_len);
338 p += mimetype_len;
343 *len = prefix_len + mimetype_len;
345 memcpy(content_type + prefix_len, mimetype, mimetype_len + 1);

Completed in 8 milliseconds