Searched refs:content_type (Results 1 - 25 of 29) sorted by relevance

12

/PHP_TRUNK/ext/standard/tests/file/
H A Dfile.inc192 string $content_type = "numeric",
212 $content_type = Specify type of the content to fill in the file.
235 $content_type = "numeric",
279 if ( $content_type == "empty" ) {
293 if( fill_file($file_handle, $content_type, $file_size) )
/PHP_TRUNK/ext/iconv/
H A Diconv.c402 char *s, *content_type, *mimetype = NULL; local
428 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()), get_output_encoding());
430 len = spprintf(&content_type, 0, "Content-Type:%.*s; charset=%s", mimetype_len ? mimetype_len : (size_t) strlen(mimetype), mimetype, get_output_encoding());
432 if (content_type && SUCCESS == sapi_add_header(content_type, (uint)len, 0)) {
/PHP_TRUNK/ext/soap/
H A Dphp_http.c342 char *http_body, *content_type, *http_version, *cookie_itt; local
1197 content_type = get_http_header_value(http_headers->val, "Content-Type: ");
1198 if (content_type) {
1201 pos = strstr(content_type,";");
1203 cmplen = pos - content_type;
1205 cmplen = strlen(content_type);
1207 if (strncmp(content_type, "text/xml", cmplen) == 0 ||
1208 strncmp(content_type, "application/soap+xml", cmplen) == 0) {
1216 efree(content_type);
1223 efree(content_type);
[all...]
/PHP_TRUNK/main/
H A DSAPI.c193 uint content_type_length = (uint)strlen(SG(request_info).content_type);
194 char *content_type = estrndup(SG(request_info).content_type, content_type_length); local
204 for (p=content_type; p<content_type+content_type_length; p++) {
209 content_type_length = p-content_type;
220 if ((post_entry = zend_hash_str_find_ptr(&SG(known_post_content_types), content_type,
231 sapi_module.sapi_error(E_WARNING, "Unsupported content type: '%s'", content_type);
239 SG(request_info).content_type_dup = content_type;
312 char *mimetype, *charset, *content_type; local
[all...]
H A DSAPI.h93 const char *content_type; member in struct:__anon254
281 char *content_type; member in struct:_sapi_post_entry
/PHP_TRUNK/sapi/aolserver/
H A Daolserver.c457 SG(request_info).content_type = index == -1 ? NULL :
/PHP_TRUNK/sapi/apache/
H A Dmod_php7.c198 r->content_type = pstrdup(r->pool, header_content);
530 SG(request_info).content_type = (char *) table_get(r->subprocess_env, "CONTENT_TYPE");
632 r->content_type = php_apache_get_default_mimetype(r);
668 r->content_type = php_apache_get_default_mimetype(r);
H A Dphp_apache.c486 if (rr->content_type) {
487 add_property_string(return_value,"content_type", (char *)rr->content_type);
/PHP_TRUNK/sapi/apache2filter/
H A Dphp_functions.c127 ADD_STRING(content_type);
H A Dsapi_apache2.c127 ctx->r->content_type = apr_pstrdup(ctx->r->pool, val);
396 char *content_type; local
402 SG(request_info).content_type = apr_table_get(f->r->headers_in, "Content-Type");
411 content_type = sapi_get_default_content_type();
412 f->r->content_type = apr_pstrdup(f->r->pool, content_type);
414 efree(content_type);
661 if (r->content_type && !strncmp(r->content_type, "application/x-httpd-php", content_type_len-1)) {
662 if (r->content_type[content_type_le
[all...]
/PHP_TRUNK/sapi/apache2handler/
H A Dphp_apache.h51 char *content_type; member in struct:php_struct
H A Dphp_functions.c147 ADD_STRING(content_type);
H A Dsapi_apache2.c127 if (ctx->content_type) {
128 efree(ctx->content_type);
130 ctx->content_type = estrdup(val);
176 if (!ctx->content_type) {
177 ctx->content_type = sapi_get_default_content_type();
179 ap_set_content_type(ctx->r, apr_pstrdup(ctx->r->pool, ctx->content_type));
180 efree(ctx->content_type);
181 ctx->content_type = NULL;
480 SG(request_info).content_type = apr_table_get(r->headers_in, "Content-Type");
/PHP_TRUNK/sapi/apache_hooks/
H A Dmod_php7.c343 r->content_type = pstrdup(r->pool, header_content);
583 SG(request_info).content_type = (char *) table_get(r->subprocess_env, "CONTENT_TYPE");
677 r->content_type = php_apache_get_default_mimetype(r);
714 r->content_type = php_apache_get_default_mimetype(r);
H A Dphp_apache.c340 /* {{{ proto string ApacheRequest::content_type([string new_type])
344 apache_request_string_slot(offsetof(request_rec, content_type), INTERNAL_FUNCTION_PARAM_PASSTHRU);
972 r->content_type = pstrdup(r->pool, type);
1296 PHP_FALIAS(content_type, apache_request_content_type, NULL)
1859 if (rr->content_type) {
1860 add_property_string(return_value,"content_type", (char *)rr->content_type);
/PHP_TRUNK/sapi/cgi/
H A Dcgi_main.c1171 SG(request_info).content_type = NULL;
1182 char *content_type = CGI_GETENV("CONTENT_TYPE"); local
1437 SG(request_info).content_type = (content_type ? content_type : "" );
/PHP_TRUNK/sapi/continuity/
H A Dcapi.c418 char *content_type = lstFset_get(NSG(t->req_hdrs), "content-type"); local
425 SG(request_info).content_type = capi_strdup(content_type);
436 capi_free(SG(request_info).content_type);
/PHP_TRUNK/sapi/fpm/fpm/
H A Dfpm_main.c1062 SG(request_info).content_type = NULL;
1073 char *content_type = sapi_cgibin_getenv("CONTENT_TYPE", sizeof("CONTENT_TYPE") - 1); local
1384 SG(request_info).content_type = (content_type ? content_type : "" );
/PHP_TRUNK/sapi/nsapi/
H A Dnsapi.c969 char *content_type = pblock_findval("content-type", rq->headers); local
1025 SG(request_info).content_type = content_type;
/PHP_TRUNK/sapi/phttpd/
H A Dphttpd.c215 SG(request_info).content_type = index == -1 ? NULL :
/PHP_TRUNK/sapi/pi3web/
H A Dpi3web_sapi.c273 SG(request_info).content_type = lpCB->lpszContentType;
/PHP_TRUNK/sapi/roxen/
H A Droxen.c646 SG(request_info).content_type = lookup_string_header("HTTP_CONTENT_TYPE", NULL);
/PHP_TRUNK/sapi/thttpd/
H A Dthttpd.c460 SG(request_info).content_type = strdup(TG(hc)->contenttype);
476 if (SG(request_info).content_type)
477 free(SG(request_info).content_type);
/PHP_TRUNK/sapi/tux/
H A Dphp_tux.c236 CONDADD(CONTENT_TYPE, content_type);
339 SG(request_info).content_type = TG(req)->content_type;
/PHP_TRUNK/sapi/webjames/
H A Dwebjames.c186 SG(request_info).content_type = WG(conn)->type;

Completed in 40 milliseconds

12