Lines Matching refs:sapi_headers

359 …uffer, php_cli_server_client *client, bool persistent, sapi_headers_struct *sapi_headers) /* {{{ */  in append_essential_headers()  argument
365 if (sapi_headers != NULL) { in append_essential_headers()
367 …sapi_header_struct *h = (sapi_header_struct*)zend_llist_get_first_ex(&sapi_headers->headers, &pos); in append_essential_headers()
375 h = (sapi_header_struct*)zend_llist_get_next_ex(&sapi_headers->headers, &pos); in append_essential_headers()
457 …zend_llist_apply_with_argument(&SG(sapi_headers).headers, (llist_apply_with_arg_func_t)add_respons… in PHP_FUNCTION()
546 static int sapi_cli_server_discard_headers(sapi_headers_struct *sapi_headers) /* {{{ */{ in sapi_cli_server_discard_headers() argument
551 static int sapi_cli_server_send_headers(sapi_headers_struct *sapi_headers) /* {{{ */ in sapi_cli_server_send_headers() argument
562 if (SG(sapi_headers).http_status_line) { in sapi_cli_server_send_headers()
563 smart_str_appends(&buffer, SG(sapi_headers).http_status_line); in sapi_cli_server_send_headers()
566 …append_http_status_line(&buffer, client->request.protocol_version, SG(sapi_headers).http_response_… in sapi_cli_server_send_headers()
569 append_essential_headers(&buffer, client, 0, sapi_headers); in sapi_cli_server_send_headers()
571 h = (sapi_header_struct*)zend_llist_get_first_ex(&sapi_headers->headers, &pos); in sapi_cli_server_send_headers()
577 h = (sapi_header_struct*)zend_llist_get_next_ex(&sapi_headers->headers, &pos); in sapi_cli_server_send_headers()
2145 php_cli_server_log_response(client, SG(sapi_headers).http_response_code, NULL); in php_cli_server_dispatch_script()
2235 SG(sapi_headers).http_response_code = 200; in php_cli_server_request_startup()
2334 if (SG(sapi_headers).http_response_code == 304) { in php_cli_server_dispatch()
2335 SG(sapi_headers).send_default_content_type = 0; in php_cli_server_dispatch()
2345 SG(sapi_headers).send_default_content_type = 0; in php_cli_server_dispatch()
2350 SG(sapi_headers).send_default_content_type = 1; in php_cli_server_dispatch()