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

/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/sapi/apache2handler/
H A Dphp_functions.c147 ADD_STRING(content_type);
H A Dphp_apache.h51 char *content_type; member in struct:php_struct
H A Dsapi_apache2.c121 if (ctx->content_type) {
122 efree(ctx->content_type);
124 ctx->content_type = estrdup(val);
170 if (!ctx->content_type) {
171 ctx->content_type = sapi_get_default_content_type();
173 ap_set_content_type(ctx->r, apr_pstrdup(ctx->r->pool, ctx->content_type));
174 efree(ctx->content_type);
175 ctx->content_type = NULL;
479 SG(request_info).content_type = apr_table_get(r->headers_in, "Content-Type");
/PHP_TRUNK/main/
H A DSAPI.c189 uint content_type_length = (uint)strlen(SG(request_info).content_type);
190 char *content_type = estrndup(SG(request_info).content_type, content_type_length); local
200 for (p=content_type; p<content_type+content_type_length; p++) {
205 content_type_length = p-content_type;
216 if ((post_entry = zend_hash_str_find_ptr(&SG(known_post_content_types), content_type,
227 sapi_module.sapi_error(E_WARNING, "Unsupported content type: '%s'", content_type);
235 SG(request_info).content_type_dup = content_type;
308 char *mimetype, *charset, *content_type; local
[all...]
H A DSAPI.h93 const char *content_type; member in struct:__anon9
281 char *content_type; member in struct:_sapi_post_entry
/PHP_TRUNK/sapi/litespeed/
H A Dlsapi_main.c464 SG(request_info).content_type = pContentType ? pContentType : "";
/PHP_TRUNK/sapi/fpm/fpm/
H A Dfpm_main.c1043 SG(request_info).content_type = NULL;
1054 char *content_type = FCGI_GETENV(request, "CONTENT_TYPE"); local
1365 SG(request_info).content_type = (content_type ? content_type : "" );
/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.c346 char *http_body, *content_type, *http_version, *cookie_itt; local
1203 content_type = get_http_header_value(ZSTR_VAL(http_headers), "Content-Type: ");
1204 if (content_type) {
1207 pos = strstr(content_type,";");
1209 cmplen = pos - content_type;
1211 cmplen = strlen(content_type);
1213 if (strncmp(content_type, "text/xml", cmplen) == 0 ||
1214 strncmp(content_type, "application/soap+xml", cmplen) == 0) {
1222 efree(content_type);
1229 efree(content_type);
[all...]
/PHP_TRUNK/sapi/cli/
H A Dphp_cli_server.c1758 request_info->content_type = val;
/PHP_TRUNK/sapi/cgi/
H A Dcgi_main.c1138 SG(request_info).content_type = NULL;
1149 char *content_type = CGI_GETENV("CONTENT_TYPE"); local
1404 SG(request_info).content_type = (content_type ? content_type : "" );

Completed in 27 milliseconds