Lines Matching refs:SG
374 push_int(SG(sapi_headers).http_response_code); in php_caudium_low_send_headers()
490 php_register_variable("PHP_SELF", SG(request_info).request_uri, in low_sapi_caudium_register_variables()
495 (char *) SG(request_info).request_method, in low_sapi_caudium_register_variables()
497 php_register_variable("REQUEST_URI", SG(request_info).request_uri, in low_sapi_caudium_register_variables()
499 php_register_variable("PATH_TRANSLATED", SG(request_info).path_translated, in low_sapi_caudium_register_variables()
608 SG(request_info).query_string = lookup_string_header("QUERY_STRING", 0); in php_caudium_module_main()
609 SG(server_context) = (void *)1; /* avoid server_context == NULL */ in php_caudium_module_main()
614 SG(request_info).path_translated = in php_caudium_module_main()
616 SG(request_info).request_uri = lookup_string_header("DOCUMENT_URI", NULL); in php_caudium_module_main()
617 if(!SG(request_info).request_uri) in php_caudium_module_main()
618 SG(request_info).request_uri = lookup_string_header("SCRIPT_NAME", NULL); in php_caudium_module_main()
619 SG(request_info).request_method = lookup_string_header("REQUEST_METHOD", "GET"); in php_caudium_module_main()
620 SG(request_info).content_length = lookup_integer_header("HTTP_CONTENT_LENGTH", 0); in php_caudium_module_main()
621 SG(request_info).content_type = lookup_string_header("HTTP_CONTENT_TYPE", NULL); in php_caudium_module_main()
622 SG(sapi_headers).http_response_code = 200; in php_caudium_module_main()
623 if (!strcmp(SG(request_info).request_method, "HEAD")) { in php_caudium_module_main()
624 SG(request_info).headers_only = 1; in php_caudium_module_main()
626 SG(request_info).headers_only = 0; in php_caudium_module_main()