Lines Matching refs:request_info

173 	if (SG(request_info).post_entry && SG(request_info).content_type_dup) {  in sapi_handle_post()
174 SG(request_info).post_entry->post_handler(SG(request_info).content_type_dup, arg); in sapi_handle_post()
175 efree(SG(request_info).content_type_dup); in sapi_handle_post()
176 SG(request_info).content_type_dup = NULL; in sapi_handle_post()
183 uint32_t content_type_length = (uint32_t)strlen(SG(request_info).content_type); in sapi_read_post_data()
184 char *content_type = estrndup(SG(request_info).content_type, content_type_length); in sapi_read_post_data()
213 SG(request_info).post_entry = post_entry; in sapi_read_post_data()
217 SG(request_info).post_entry = NULL; in sapi_read_post_data()
220 SG(request_info).content_type_dup = NULL; in sapi_read_post_data()
229 SG(request_info).content_type_dup = content_type; in sapi_read_post_data()
264 if ((SG(post_max_size) > 0) && (SG(request_info).content_length > SG(post_max_size))) { in SAPI_POST_READER_FUNC()
266 SG(request_info).content_length, SG(post_max_size)); in SAPI_POST_READER_FUNC()
271 …SG(request_info).request_body = php_stream_temp_create_ex(TEMP_STREAM_DEFAULT, SAPI_POST_BLOCK_SIZ… in SAPI_POST_READER_FUNC()
282 if (php_stream_write(SG(request_info).request_body, buffer, read_bytes) != read_bytes) { in SAPI_POST_READER_FUNC()
284 php_stream_truncate_set_size(SG(request_info).request_body, 0); in SAPI_POST_READER_FUNC()
300 php_stream_rewind(SG(request_info).request_body); in SAPI_POST_READER_FUNC()
396 if (SG(request_info).headers_read == 1) in sapi_activate_headers_only()
398 SG(request_info).headers_read = 1; in sapi_activate_headers_only()
407 SG(request_info).request_body = NULL; in sapi_activate_headers_only()
408 SG(request_info).current_user = NULL; in sapi_activate_headers_only()
409 SG(request_info).current_user_length = 0; in sapi_activate_headers_only()
410 SG(request_info).no_headers = 0; in sapi_activate_headers_only()
411 SG(request_info).post_entry = NULL; in sapi_activate_headers_only()
418 if (SG(request_info).request_method && !strcmp(SG(request_info).request_method, "HEAD")) { in sapi_activate_headers_only()
419 SG(request_info).headers_only = 1; in sapi_activate_headers_only()
421 SG(request_info).headers_only = 0; in sapi_activate_headers_only()
424 SG(request_info).cookie_data = sapi_module.read_cookies(); in sapi_activate_headers_only()
451 SG(request_info).request_body = NULL; in sapi_activate()
452 SG(request_info).current_user = NULL; in sapi_activate()
453 SG(request_info).current_user_length = 0; in sapi_activate()
454 SG(request_info).no_headers = 0; in sapi_activate()
455 SG(request_info).post_entry = NULL; in sapi_activate()
456 SG(request_info).proto_num = 1000; /* Default to HTTP 1.0 */ in sapi_activate()
460 if (SG(request_info).request_method && !strcmp(SG(request_info).request_method, "HEAD")) { in sapi_activate()
461 SG(request_info).headers_only = 1; in sapi_activate()
463 SG(request_info).headers_only = 0; in sapi_activate()
470 && SG(request_info).content_type in sapi_activate()
471 && SG(request_info).request_method in sapi_activate()
472 && !strcmp(SG(request_info).request_method, "POST")) { in sapi_activate()
477 SG(request_info).content_type_dup = NULL; in sapi_activate()
481 SG(request_info).cookie_data = sapi_module.read_cookies(); in sapi_activate()
503 if (SG(request_info).request_body) { in sapi_deactivate()
504 SG(request_info).request_body = NULL; in sapi_deactivate()
516 if (SG(request_info).auth_user) { in sapi_deactivate()
517 efree(SG(request_info).auth_user); in sapi_deactivate()
519 if (SG(request_info).auth_password) { in sapi_deactivate()
520 efree(SG(request_info).auth_password); in sapi_deactivate()
522 if (SG(request_info).auth_digest) { in sapi_deactivate()
523 efree(SG(request_info).auth_digest); in sapi_deactivate()
525 if (SG(request_info).content_type_dup) { in sapi_deactivate()
526 efree(SG(request_info).content_type_dup); in sapi_deactivate()
528 if (SG(request_info).current_user) { in sapi_deactivate()
529 efree(SG(request_info).current_user); in sapi_deactivate()
544 SG(request_info).headers_read = 0; in sapi_deactivate()
552 SG(request_info).request_method = NULL; in sapi_initialize_empty_request()
553 SG(request_info).auth_digest = SG(request_info).auth_user = SG(request_info).auth_password = NULL; in sapi_initialize_empty_request()
554 SG(request_info).content_type_dup = NULL; in sapi_initialize_empty_request()
667 if (SG(headers_sent) && !SG(request_info).no_headers) { in sapi_header_op()
820 } else if (SG(request_info).proto_num > 1000 && in sapi_header_op()
821 SG(request_info).request_method && in sapi_header_op()
822 strcmp(SG(request_info).request_method, "HEAD") && in sapi_header_op()
823 strcmp(SG(request_info).request_method, "GET")) { in sapi_header_op()
850 if (SG(headers_sent) || SG(request_info).no_headers) { in sapi_send_headers()
1013 …if (!SG(request_info).path_translated || (VCWD_STAT(SG(request_info).path_translated, &SG(global_s… in sapi_get_stat()