Lines Matching refs:sapi_headers
433 …zend_llist_apply_with_argument(&SG(sapi_headers).headers, (llist_apply_with_arg_func_t)add_respons… in PHP_FUNCTION()
529 static int sapi_cli_server_discard_headers(sapi_headers_struct *sapi_headers) /* {{{ */{ in sapi_cli_server_discard_headers() argument
534 static int sapi_cli_server_send_headers(sapi_headers_struct *sapi_headers) /* {{{ */ in sapi_cli_server_send_headers() argument
545 if (SG(sapi_headers).http_status_line) { in sapi_cli_server_send_headers()
546 smart_str_appends(&buffer, SG(sapi_headers).http_status_line); in sapi_cli_server_send_headers()
549 …append_http_status_line(&buffer, client->request.protocol_version, SG(sapi_headers).http_response_… in sapi_cli_server_send_headers()
554 h = (sapi_header_struct*)zend_llist_get_first_ex(&sapi_headers->headers, &pos); in sapi_cli_server_send_headers()
560 h = (sapi_header_struct*)zend_llist_get_next_ex(&sapi_headers->headers, &pos); in sapi_cli_server_send_headers()
2022 php_cli_server_log_response(client, SG(sapi_headers).http_response_code, NULL); in php_cli_server_dispatch_script()
2105 SG(sapi_headers).http_response_code = 200; in php_cli_server_request_startup()
2196 if (SG(sapi_headers).http_response_code == 304) { in php_cli_server_dispatch()
2197 SG(sapi_headers).send_default_content_type = 0; in php_cli_server_dispatch()
2207 SG(sapi_headers).send_default_content_type = 0; in php_cli_server_dispatch()
2212 SG(sapi_headers).send_default_content_type = 1; in php_cli_server_dispatch()