Lines Matching refs:sapi_headers
364 static int sapi_lsapi_send_headers_like_cgi(sapi_headers_struct *sapi_headers) in sapi_lsapi_send_headers_like_cgi() argument
370 int response_status = SG(sapi_headers).http_response_code; in sapi_lsapi_send_headers_like_cgi()
377 if (SG(sapi_headers).http_response_code != 200) in sapi_lsapi_send_headers_like_cgi()
384 if (SG(sapi_headers).http_status_line && in sapi_lsapi_send_headers_like_cgi()
385 (s = strchr(SG(sapi_headers).http_status_line, ' ')) != 0 && in sapi_lsapi_send_headers_like_cgi()
386 (s - SG(sapi_headers).http_status_line) >= 5 && in sapi_lsapi_send_headers_like_cgi()
387 strncasecmp(SG(sapi_headers).http_status_line, "HTTP/", 5) == 0 in sapi_lsapi_send_headers_like_cgi()
392 h = (sapi_header_struct*)zend_llist_get_first_ex(&sapi_headers->headers, &pos); in sapi_lsapi_send_headers_like_cgi()
400 h = (sapi_header_struct*)zend_llist_get_next_ex(&sapi_headers->headers, &pos); in sapi_lsapi_send_headers_like_cgi()
406 if (err->code == SG(sapi_headers).http_response_code) { in sapi_lsapi_send_headers_like_cgi()
412 … len = slprintf(buf, sizeof(buf), "Status: %d %s", SG(sapi_headers).http_response_code, err->msg); in sapi_lsapi_send_headers_like_cgi()
414 … len = slprintf(buf, sizeof(buf), "Status: %d", SG(sapi_headers).http_response_code); in sapi_lsapi_send_headers_like_cgi()
425 h = (sapi_header_struct*)zend_llist_get_first_ex(&sapi_headers->headers, &pos); in sapi_lsapi_send_headers_like_cgi()
439 h = (sapi_header_struct*)zend_llist_get_next_ex(&sapi_headers->headers, &pos); in sapi_lsapi_send_headers_like_cgi()
445 h = (sapi_header_struct*)zend_llist_get_next_ex(&sapi_headers->headers, &pos); in sapi_lsapi_send_headers_like_cgi()
459 static int sapi_lsapi_send_headers(sapi_headers_struct *sapi_headers) in sapi_lsapi_send_headers() argument
466 return sapi_lsapi_send_headers_like_cgi(sapi_headers); in sapi_lsapi_send_headers()
471 LSAPI_SetRespStatus( SG(sapi_headers).http_response_code ); in sapi_lsapi_send_headers()
473 h = zend_llist_get_first_ex(&sapi_headers->headers, &pos); in sapi_lsapi_send_headers()
478 h = zend_llist_get_next_ex(&sapi_headers->headers, &pos); in sapi_lsapi_send_headers()
480 if (SG(sapi_headers).send_default_content_type) { in sapi_lsapi_send_headers()
639 SG(sapi_headers).http_response_code = 200; in init_request_info()
1684 if (!&SG(sapi_headers).headers) { in PHP_FUNCTION()
1689 h = zend_llist_get_first_ex(&SG(sapi_headers).headers, &pos); in PHP_FUNCTION()
1706 h = zend_llist_get_next_ex(&SG(sapi_headers).headers, &pos); in PHP_FUNCTION()