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

12

/PHP_5_4/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_5_4/ext/soap/
H A Dphp_http.c285 char *http_headers, *http_body, *content_type, *http_version, *cookie_itt; local
1145 content_type = get_http_header_value(http_headers,"Content-Type: ");
1146 if (content_type) {
1149 pos = strstr(content_type,";");
1151 cmplen = pos - content_type;
1153 cmplen = strlen(content_type);
1155 if (strncmp(content_type, "text/xml", cmplen) == 0 ||
1156 strncmp(content_type, "application/soap+xml", cmplen) == 0) {
1164 efree(content_type);
1171 efree(content_type);
[all...]
/PHP_5_4/main/
H A DSAPI.h90 const char *content_type; member in struct:__anon288
277 char *content_type; member in struct:_sapi_post_entry
H A DSAPI.c202 uint content_type_length = strlen(SG(request_info).content_type);
203 char *content_type = estrndup(SG(request_info).content_type, content_type_length); local
213 for (p=content_type; p<content_type+content_type_length; p++) {
218 content_type_length = p-content_type;
229 if (zend_hash_find(&SG(known_post_content_types), content_type,
240 sapi_module.sapi_error(E_WARNING, "Unsupported content type: '%s'", content_type);
248 SG(request_info).content_type_dup = content_type;
297 char *mimetype, *charset, *content_type; local
[all...]
/PHP_5_4/sapi/aolserver/
H A Daolserver.c457 SG(request_info).content_type = index == -1 ? NULL :
/PHP_5_4/sapi/apache/
H A Dmod_php5.c198 r->content_type = pstrdup(r->pool, header_content);
531 SG(request_info).content_type = (char *) table_get(r->subprocess_env, "CONTENT_TYPE");
632 r->content_type = php_apache_get_default_mimetype(r TSRMLS_CC);
668 r->content_type = php_apache_get_default_mimetype(r TSRMLS_CC);
H A Dphp_apache.c486 if (rr->content_type) {
487 add_property_string(return_value,"content_type", (char *)rr->content_type, 1);
/PHP_5_4/sapi/apache2filter/
H A Dphp_functions.c127 ADD_STRING(content_type);
H A Dsapi_apache2.c129 ctx->r->content_type = apr_pstrdup(ctx->r->pool, val);
399 char *content_type; local
405 SG(request_info).content_type = apr_table_get(f->r->headers_in, "Content-Type");
414 content_type = sapi_get_default_content_type(TSRMLS_C);
415 f->r->content_type = apr_pstrdup(f->r->pool, content_type);
419 efree(content_type);
668 if (r->content_type && !strncmp(r->content_type, "application/x-httpd-php", content_type_len-1)) {
669 if (r->content_type[content_type_le
[all...]
/PHP_5_4/sapi/apache2handler/
H A Dphp_apache.h48 char *content_type; member in struct:php_struct
H A Dphp_functions.c147 ADD_STRING(content_type);
H A Dsapi_apache2.c124 if (ctx->content_type) {
125 efree(ctx->content_type);
127 ctx->content_type = estrdup(val);
173 if (!ctx->content_type) {
174 ctx->content_type = sapi_get_default_content_type(TSRMLS_C);
176 ap_set_content_type(ctx->r, apr_pstrdup(ctx->r->pool, ctx->content_type));
177 efree(ctx->content_type);
178 ctx->content_type = NULL;
477 SG(request_info).content_type = apr_table_get(r->headers_in, "Content-Type");
/PHP_5_4/sapi/apache_hooks/
H A Dmod_php5.c343 r->content_type = pstrdup(r->pool, header_content);
584 SG(request_info).content_type = (char *) table_get(r->subprocess_env, "CONTENT_TYPE");
679 r->content_type = php_apache_get_default_mimetype(r TSRMLS_CC);
716 r->content_type = php_apache_get_default_mimetype(r TSRMLS_CC);
H A Dphp_apache.c342 /* {{{ proto string ApacheRequest::content_type([string new_type])
346 apache_request_string_slot(offsetof(request_rec, content_type), INTERNAL_FUNCTION_PARAM_PASSTHRU);
974 r->content_type = pstrdup(r->pool, type);
1298 PHP_FALIAS(content_type, apache_request_content_type, NULL)
1861 if (rr->content_type) {
1862 add_property_string(return_value,"content_type", (char *)rr->content_type, 1);
/PHP_5_4/sapi/cgi/
H A Dcgi_main.c1155 SG(request_info).content_type = NULL;
1166 char *content_type = CGI_GETENV("CONTENT_TYPE"); local
1421 SG(request_info).content_type = (content_type ? content_type : "" );
/PHP_5_4/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_5_4/ext/iconv/
H A Diconv.c334 char *s, *content_type, *mimetype = NULL; local
360 len = spprintf(&content_type, 0, "Content-Type:%.*s; charset=%.*s", mimetype_len ? mimetype_len : (int) strlen(mimetype), mimetype, (int)(p - ICONVG(output_encoding)), ICONVG(output_encoding));
362 len = spprintf(&content_type, 0, "Content-Type:%.*s; charset=%s", mimetype_len ? mimetype_len : (int) strlen(mimetype), mimetype, ICONVG(output_encoding));
364 if (content_type && SUCCESS == sapi_add_header(content_type, len, 0)) {
/PHP_5_4/sapi/nsapi/
H A Dnsapi.c970 char *content_type = pblock_findval("content-type", rq->headers); local
1027 SG(request_info).content_type = content_type;
/PHP_5_4/sapi/phttpd/
H A Dphttpd.c215 SG(request_info).content_type = index == -1 ? NULL :
/PHP_5_4/sapi/pi3web/
H A Dpi3web_sapi.c273 SG(request_info).content_type = lpCB->lpszContentType;
/PHP_5_4/sapi/roxen/
H A Droxen.c648 SG(request_info).content_type = lookup_string_header("HTTP_CONTENT_TYPE", NULL);
/PHP_5_4/sapi/thttpd/
H A Dthttpd.c459 SG(request_info).content_type = strdup(TG(hc)->contenttype);
475 if (SG(request_info).content_type)
476 free(SG(request_info).content_type);
/PHP_5_4/sapi/tux/
H A Dphp_tux.c240 CONDADD(CONTENT_TYPE, content_type);
343 SG(request_info).content_type = TG(req)->content_type;
/PHP_5_4/sapi/webjames/
H A Dwebjames.c186 SG(request_info).content_type = WG(conn)->type;
/PHP_5_4/sapi/fpm/fpm/
H A Dfpm_main.c1068 SG(request_info).content_type = NULL;
1079 char *content_type = sapi_cgibin_getenv("CONTENT_TYPE", sizeof("CONTENT_TYPE") - 1 TSRMLS_CC); local
1379 SG(request_info).content_type = (content_type ? content_type : "" );

Completed in 52 milliseconds

12