Lines Matching refs:r

131 	request_rec *r;  in get_apache_request()  local
149 r = (request_rec *)Z_LVAL_PP(addr); in get_apache_request()
150 if (!r) { in get_apache_request()
155 return r; in get_apache_request()
161 zval *php_apache_request_new(request_rec *r) in php_apache_request_new() argument
170 Z_LVAL_P(addr) = (int) r; in php_apache_request_new()
185 request_rec *r; in apache_request_read_string_slot() local
192 APREQ_GET_REQUEST(id, r); in apache_request_read_string_slot()
194 s = *(char **)((char*)r + offset); in apache_request_read_string_slot()
210 request_rec *r; in apache_request_string_slot() local
219 APREQ_GET_REQUEST(id, r); in apache_request_string_slot()
221 target = (char **)((char*)r + offset); in apache_request_string_slot()
225 *target = ap_pstrdup(r->pool, new_value); in apache_request_string_slot()
241 request_rec *r; in apache_request_read_int_slot() local
248 APREQ_GET_REQUEST(id, r); in apache_request_read_int_slot()
250 l = *(long *)((char*)r + offset); in apache_request_read_int_slot()
261 request_rec *r; in apache_request_int_slot() local
269 APREQ_GET_REQUEST(id, r); in apache_request_int_slot()
271 target = (long *)((char*)r + offset); in apache_request_int_slot()
507 request_rec *r; in PHP_FUNCTION() local
516 APREQ_GET_REQUEST(id, r); in PHP_FUNCTION()
518 (void)ap_set_content_length(r, zlen); in PHP_FUNCTION()
566 request_rec *r; in PHP_FUNCTION() local
568 APREQ_GET_REQUEST(id, r); in PHP_FUNCTION()
570 apache_table_to_zval(r->headers_in, return_value); in PHP_FUNCTION()
659 request_rec *r; in PHP_FUNCTION() local
661 APREQ_GET_REQUEST(id, r); in PHP_FUNCTION()
664 add_header_to_table(r->headers_out, INTERNAL_FUNCTION_PARAM_PASSTHRU); in PHP_FUNCTION()
667 apache_table_to_zval(r->headers_out, return_value); in PHP_FUNCTION()
678 request_rec *r; in PHP_FUNCTION() local
680 APREQ_GET_REQUEST(id, r); in PHP_FUNCTION()
683 add_header_to_table(r->err_headers_out, INTERNAL_FUNCTION_PARAM_PASSTHRU); in PHP_FUNCTION()
686 apache_table_to_zval(r->err_headers_out, return_value); in PHP_FUNCTION()
699 request_rec *r; in PHP_FUNCTION() local
705 APREQ_GET_REQUEST(id, r); in PHP_FUNCTION()
707 RETURN_LONG(ap_get_server_port(r)); in PHP_FUNCTION()
717 request_rec *r; in PHP_FUNCTION() local
728 APREQ_GET_REQUEST(id, r); in PHP_FUNCTION()
730 res = (char *)ap_get_remote_host(r->connection, r->per_dir_config, (int)type); in PHP_FUNCTION()
745 request_rec *r; in PHP_FUNCTION() local
752 APREQ_GET_REQUEST(id, r); in PHP_FUNCTION()
754 RETURN_LONG(ap_update_mtime(r, (int) mtime)); in PHP_FUNCTION()
764 request_rec *r; in PHP_FUNCTION() local
770 APREQ_GET_REQUEST(id, r); in PHP_FUNCTION()
772 ap_set_etag(r); in PHP_FUNCTION()
782 request_rec *r; in PHP_FUNCTION() local
788 APREQ_GET_REQUEST(id, r); in PHP_FUNCTION()
790 ap_set_last_modified(r); in PHP_FUNCTION()
800 request_rec *r; in PHP_FUNCTION() local
806 APREQ_GET_REQUEST(id, r); in PHP_FUNCTION()
808 RETURN_LONG(ap_meets_conditions(r)); in PHP_FUNCTION()
817 request_rec *r; in PHP_FUNCTION() local
823 APREQ_GET_REQUEST(id, r); in PHP_FUNCTION()
825 RETURN_LONG(ap_discard_request_body(r)); in PHP_FUNCTION()
834 request_rec *r; in PHP_FUNCTION() local
840 APREQ_GET_REQUEST(id, r); in PHP_FUNCTION()
842 RETURN_LONG(ap_satisfies(r)); in PHP_FUNCTION()
852 request_rec *r; in PHP_FUNCTION() local
858 APREQ_GET_REQUEST(id, r); in PHP_FUNCTION()
860 RETURN_BOOL(ap_is_initial_req(r)); in PHP_FUNCTION()
869 request_rec *r; in PHP_FUNCTION() local
875 APREQ_GET_REQUEST(id, r); in PHP_FUNCTION()
877 RETURN_BOOL(ap_some_auth_required(r)); in PHP_FUNCTION()
886 request_rec *r; in PHP_FUNCTION() local
893 APREQ_GET_REQUEST(id, r); in PHP_FUNCTION()
895 t = (char *)ap_auth_type(r); in PHP_FUNCTION()
909 request_rec *r; in PHP_FUNCTION() local
916 APREQ_GET_REQUEST(id, r); in PHP_FUNCTION()
918 t = (char *)ap_auth_name(r); in PHP_FUNCTION()
932 request_rec *r; in PHP_FUNCTION() local
945 APREQ_GET_REQUEST(id, r); in PHP_FUNCTION()
948 status = ap_get_basic_auth_pw(r, &pw); in PHP_FUNCTION()
964 request_rec *r; in PHP_FUNCTION() local
972 APREQ_GET_REQUEST(id, r); in PHP_FUNCTION()
974 r->content_type = pstrdup(r->pool, type); in PHP_FUNCTION()
976 ap_send_http_header(r); in PHP_FUNCTION()
985 request_rec *r; in PHP_FUNCTION() local
991 APREQ_GET_REQUEST(id, r); in PHP_FUNCTION()
1002 request_rec *r; in PHP_FUNCTION() local
1008 APREQ_GET_REQUEST(id, r); in PHP_FUNCTION()
1019 request_rec *r; in PHP_FUNCTION() local
1025 APREQ_GET_REQUEST(id, r); in PHP_FUNCTION()
1036 request_rec *r; in PHP_FUNCTION() local
1043 APREQ_GET_REQUEST(id, r); in PHP_FUNCTION()
1044 ap_send_error_response(r, (int) rec); in PHP_FUNCTION()
1052 request_rec *r; in PHP_FUNCTION() local
1058 APREQ_GET_REQUEST(id, r); in PHP_FUNCTION()
1060 ap_set_content_length(r, length); in PHP_FUNCTION()
1067 request_rec *r; in PHP_FUNCTION() local
1073 APREQ_GET_REQUEST(id, r); in PHP_FUNCTION()
1074 ap_set_keepalive(r); in PHP_FUNCTION()
1095 request_rec *r; in PHP_FUNCTION() local
1101 APREQ_GET_REQUEST(id, r); in PHP_FUNCTION()
1139 request_rec *r; in PHP_FUNCTION() local
1145 APREQ_GET_REQUEST(id, r); in PHP_FUNCTION()
1146 ap_log_error(APLOG_MARK, (int) facility, r->server, "%s", z_errstr); in PHP_FUNCTION()
1161 request_rec *r, *sub_r; in PHP_FUNCTION() local
1167 APREQ_GET_REQUEST(id, r); in PHP_FUNCTION()
1168 sub_r = ap_sub_req_lookup_uri(file, r); in PHP_FUNCTION()
1186 request_rec *r, *sub_r; in PHP_FUNCTION() local
1192 APREQ_GET_REQUEST(id, r); in PHP_FUNCTION()
1194 sub_r = ap_sub_req_lookup_file(file, r); in PHP_FUNCTION()
1212 request_rec *r, *sub_r; in PHP_FUNCTION() local
1218 APREQ_GET_REQUEST(id, r); in PHP_FUNCTION()
1220 sub_r = ap_sub_req_method_uri(method, file, r); in PHP_FUNCTION()
1236 request_rec *r; in PHP_FUNCTION() local
1243 APREQ_GET_REQUEST(id, r); in PHP_FUNCTION()
1244 if (!r || ap_is_initial_req(r)) { in PHP_FUNCTION()
1247 status = ap_run_sub_req(r); in PHP_FUNCTION()
1248 ap_destroy_sub_req(r); in PHP_FUNCTION()
1258 request_rec *r; in PHP_FUNCTION() local
1264 APREQ_GET_REQUEST(id, r); in PHP_FUNCTION()
1266 ap_internal_redirect(new_uri, r); in PHP_FUNCTION()
1274 request_rec *r; in PHP_FUNCTION() local
1280 APREQ_GET_REQUEST(id, r); in PHP_FUNCTION()
1282 ap_send_header_field(r, fieldname, fieldval); in PHP_FUNCTION()
1657 request_rec *r; in PHP_MINFO_FUNCTION() local
1659 r = ((request_rec *) SG(server_context)); in PHP_MINFO_FUNCTION()
1660 arr = table_elts(r->subprocess_env); in PHP_MINFO_FUNCTION()
1676 request_rec *r; in PHP_MINFO_FUNCTION() local
1678 r = ((request_rec *) SG(server_context)); in PHP_MINFO_FUNCTION()
1682 php_info_print_table_row(2, "HTTP Request", r->the_request); in PHP_MINFO_FUNCTION()
1683 env_arr = table_elts(r->headers_in); in PHP_MINFO_FUNCTION()
1691 env_arr = table_elts(r->headers_out); in PHP_MINFO_FUNCTION()
1814 request_rec *r = (request_rec *) SG(server_context); in PHP_FUNCTION() local
1821 if (r->prev) { in PHP_FUNCTION()
1822 r = r->prev; in PHP_FUNCTION()
1827 …ap_table_setn(r->subprocess_env, ap_pstrndup(r->pool, var, var_len), ap_pstrndup(r->pool, val, val… in PHP_FUNCTION()