Lines Matching refs:SG
161 lpECB = (LPEXTENSION_CONTROL_BLOCK) SG(server_context); in php_info_isapi()
210 ecb = (LPEXTENSION_CONTROL_BLOCK) SG(server_context); in sapi_isapi_ub_write()
246 LPEXTENSION_CONTROL_BLOCK lpECB = (LPEXTENSION_CONTROL_BLOCK) SG(server_context); in sapi_isapi_send_headers()
252 if (SG(sapi_headers).send_default_content_type) { in sapi_isapi_send_headers()
256 …zend_llist_apply_with_argument(&SG(sapi_headers).headers, (llist_apply_with_arg_func_t) accumulate… in sapi_isapi_send_headers()
261 if (SG(sapi_headers).send_default_content_type) { in sapi_isapi_send_headers()
265 …zend_llist_apply_with_argument(&SG(sapi_headers).headers, (llist_apply_with_arg_func_t) concat_hea… in sapi_isapi_send_headers()
270 switch (SG(sapi_headers).http_response_code) { in sapi_isapi_send_headers()
281 const char *sline = SG(sapi_headers).http_status_line; in sapi_isapi_send_headers()
294 snprintf(status_buf, MAX_STATUS_LENGTH, "%d Undescribed", SG(sapi_headers).http_response_code); in sapi_isapi_send_headers()
304 lpECB->dwHttpStatusCode = SG(sapi_headers).http_response_code; in sapi_isapi_send_headers()
329 LPEXTENSION_CONTROL_BLOCK lpECB = (LPEXTENSION_CONTROL_BLOCK) SG(server_context); in sapi_isapi_read_post()
334 if ((DWORD) SG(read_post_bytes) < lpECB->cbAvailable) { in sapi_isapi_read_post()
335 read_from_buf = MIN(lpECB->cbAvailable-SG(read_post_bytes), count_bytes); in sapi_isapi_read_post()
336 memcpy(buffer, lpECB->lpbData+SG(read_post_bytes), read_from_buf); in sapi_isapi_read_post()
340 && (SG(read_post_bytes)+read_from_buf) < lpECB->cbTotalBytes) { in sapi_isapi_read_post()
343 …read_from_input = MIN(count_bytes-read_from_buf, lpECB->cbTotalBytes-SG(read_post_bytes)-read_from… in sapi_isapi_read_post()
359 LPEXTENSION_CONTROL_BLOCK lpECB = (LPEXTENSION_CONTROL_BLOCK) SG(server_context); in sapi_isapi_read_cookies()
497 …php_register_variable("SCRIPT_FILENAME", SG(request_info).path_translated, track_vars_array TSRMLS… in sapi_isapi_register_iis_variables()
544 if (!SG(request_info).auth_user || !SG(request_info).auth_password || in sapi_isapi_register_iis_variables()
545 !SG(request_info).auth_user[0] || !SG(request_info).auth_password[0]) { in sapi_isapi_register_iis_variables()
553 if (SG(request_info).auth_user) { in sapi_isapi_register_iis_variables()
554 php_register_variable("PHP_AUTH_USER", SG(request_info).auth_user, track_vars_array TSRMLS_CC ); in sapi_isapi_register_iis_variables()
556 if (SG(request_info).auth_password) { in sapi_isapi_register_iis_variables()
557 php_register_variable("PHP_AUTH_PW", SG(request_info).auth_password, track_vars_array TSRMLS_CC ); in sapi_isapi_register_iis_variables()
604 lpECB = (LPEXTENSION_CONTROL_BLOCK) SG(server_context); in sapi_isapi_register_server_variables()
609 if (SG(request_info).cookie_data) { in sapi_isapi_register_server_variables()
610 php_register_variable("HTTP_COOKIE", SG(request_info).cookie_data, track_vars_array TSRMLS_CC); in sapi_isapi_register_server_variables()
713 SG(request_info).auth_user = NULL; in HttpFilterProc()
714 SG(request_info).auth_password = NULL; in HttpFilterProc()
715 SG(request_info).auth_digest = NULL; in HttpFilterProc()
722 SG(request_info).auth_user = estrdup(auth_user); in HttpFilterProc()
725 SG(request_info).auth_password = estrdup(auth_password); in HttpFilterProc()
743 SG(request_info).request_method = lpECB->lpszMethod; in init_request_info()
744 SG(request_info).query_string = lpECB->lpszQueryString; in init_request_info()
745 SG(request_info).request_uri = lpECB->lpszPathInfo; in init_request_info()
746 SG(request_info).content_type = lpECB->lpszContentType; in init_request_info()
747 SG(request_info).content_length = lpECB->cbTotalBytes; in init_request_info()
748 …SG(sapi_headers).http_response_code = 200; /* I think dwHttpStatusCode is invalid at this stage -… in init_request_info()
750 SG(request_info).auth_user = SG(request_info).auth_password = SG(request_info).auth_digest = NULL; in init_request_info()
758 SG(request_info).path_translated = estrdup(static_variable_buf); in init_request_info()
766 SG(request_info).path_translated = estrdup(humi.lpszPath); in init_request_info()
770 SG(request_info).path_translated = estrdup(lpECB->lpszPathTranslated); in init_request_info()
774 if (strstr(SG(request_info).path_translated,"..")) { in init_request_info()
775 SG(sapi_headers).http_response_code = 404; in init_request_info()
776 efree(SG(request_info).path_translated); in init_request_info()
777 SG(request_info).path_translated = NULL; in init_request_info()
784 if (!SG(headers_sent)) { in php_isapi_report_exception()
786 LPEXTENSION_CONTROL_BLOCK lpECB = (LPEXTENSION_CONTROL_BLOCK) SG(server_context); in php_isapi_report_exception()
795 SG(headers_sent)=1; in php_isapi_report_exception()
848 SG(server_context) = lpECB; in HttpExtensionProc()
852 file_handle.filename = SG(request_info).path_translated; in HttpExtensionProc()
862 SG(sapi_headers).http_response_code = 404; in HttpExtensionProc()
868 if (SG(request_info).cookie_data) { in HttpExtensionProc()
869 efree(SG(request_info).cookie_data); in HttpExtensionProc()
871 if (SG(request_info).path_translated) in HttpExtensionProc()
872 efree(SG(request_info).path_translated); in HttpExtensionProc()