Lines Matching refs:sapi_headers
443 …zend_llist_apply_with_argument(&SG(sapi_headers).headers, (llist_apply_with_arg_func_t)add_respons… in PHP_FUNCTION()
532 static int sapi_cli_server_discard_headers(sapi_headers_struct *sapi_headers) /* {{{ */{ in sapi_cli_server_discard_headers() argument
537 static int sapi_cli_server_send_headers(sapi_headers_struct *sapi_headers) /* {{{ */ in sapi_cli_server_send_headers() argument
548 if (SG(sapi_headers).http_status_line) { in sapi_cli_server_send_headers()
549 smart_str_appends(&buffer, SG(sapi_headers).http_status_line); in sapi_cli_server_send_headers()
552 …append_http_status_line(&buffer, client->request.protocol_version, SG(sapi_headers).http_response_… in sapi_cli_server_send_headers()
557 h = (sapi_header_struct*)zend_llist_get_first_ex(&sapi_headers->headers, &pos); in sapi_cli_server_send_headers()
563 h = (sapi_header_struct*)zend_llist_get_next_ex(&sapi_headers->headers, &pos); in sapi_cli_server_send_headers()
2047 php_cli_server_log_response(client, SG(sapi_headers).http_response_code, NULL); in php_cli_server_dispatch_script()
2129 SG(sapi_headers).http_response_code = 200; in php_cli_server_request_startup()
2217 if (SG(sapi_headers).http_response_code == 304) { in php_cli_server_dispatch()
2218 SG(sapi_headers).send_default_content_type = 0; in php_cli_server_dispatch()
2228 SG(sapi_headers).send_default_content_type = 0; in php_cli_server_dispatch()
2233 SG(sapi_headers).send_default_content_type = 1; in php_cli_server_dispatch()