Lines Matching refs:sapi_headers
371 static int sapi_cgi_send_headers(sapi_headers_struct *sapi_headers) in sapi_cgi_send_headers() argument
376 int response_status = SG(sapi_headers).http_response_code; in sapi_cgi_send_headers()
382 if (CGIG(nph) || SG(sapi_headers).http_response_code != 200) in sapi_cgi_send_headers()
388 if (CGIG(rfc2616_headers) && SG(sapi_headers).http_status_line) { in sapi_cgi_send_headers()
390 len = slprintf(buf, SAPI_CGI_MAX_HEADER_LENGTH, "%s", SG(sapi_headers).http_status_line); in sapi_cgi_send_headers()
391 if ((s = strchr(SG(sapi_headers).http_status_line, ' '))) { in sapi_cgi_send_headers()
402 if (SG(sapi_headers).http_status_line && in sapi_cgi_send_headers()
403 (s = strchr(SG(sapi_headers).http_status_line, ' ')) != 0 && in sapi_cgi_send_headers()
404 (s - SG(sapi_headers).http_status_line) >= 5 && in sapi_cgi_send_headers()
405 strncasecmp(SG(sapi_headers).http_status_line, "HTTP/", 5) == 0 in sapi_cgi_send_headers()
410 h = (sapi_header_struct*)zend_llist_get_first_ex(&sapi_headers->headers, &pos); in sapi_cgi_send_headers()
418 h = (sapi_header_struct*)zend_llist_get_next_ex(&sapi_headers->headers, &pos); in sapi_cgi_send_headers()
424 if (err->code == SG(sapi_headers).http_response_code) { in sapi_cgi_send_headers()
430 … len = slprintf(buf, sizeof(buf), "Status: %d %s", SG(sapi_headers).http_response_code, err->str); in sapi_cgi_send_headers()
432 len = slprintf(buf, sizeof(buf), "Status: %d", SG(sapi_headers).http_response_code); in sapi_cgi_send_headers()
445 h = (sapi_header_struct*)zend_llist_get_first_ex(&sapi_headers->headers, &pos); in sapi_cgi_send_headers()
460 h = (sapi_header_struct*)zend_llist_get_next_ex(&sapi_headers->headers, &pos); in sapi_cgi_send_headers()
467 h = (sapi_header_struct*)zend_llist_get_next_ex(&sapi_headers->headers, &pos); in sapi_cgi_send_headers()
1183 SG(sapi_headers).http_response_code = 200;
1381 SG(sapi_headers).http_response_code = 404;
1698 …zend_llist_apply_with_argument(&SG(sapi_headers).headers, (llist_apply_with_arg_func_t)add_respons…
1903 SG(sapi_headers).http_response_code = 400;
2486 SG(sapi_headers).http_response_code = 403;
2489 SG(sapi_headers).http_response_code = 404;