TG 43 ext/tidy/php_tidy.h #define TG(v) TSRMG(tidy_globals_id, zend_tidy_globals *, v) TG 45 ext/tidy/php_tidy.h #define TG(v) (tidy_globals.v) TG 166 ext/tidy/tidy.c if (TG(default_config) && TG(default_config)[0]) { \ TG 167 ext/tidy/tidy.c if (tidyLoadConfig(_doc, TG(default_config)) < 0) { \ TG 168 ext/tidy/tidy.c php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to load Tidy configuration file at '%s'.", TG(default_config)); \ TG 1159 ext/tidy/tidy.c if (TG(clean_output) && (h = php_tidy_output_handler_init(name, name_len, 0, PHP_OUTPUT_HANDLER_STDFLAGS TSRMLS_CC))) { TG 1170 ext/tidy/tidy.c if (!TG(clean_output)) { TG 1171 ext/tidy/tidy.c TG(clean_output) = 1; TG 1183 ext/tidy/tidy.c if (TG(clean_output) && (output_context->op & PHP_OUTPUT_HANDLER_START) && (output_context->op & PHP_OUTPUT_HANDLER_FINAL)) { TG 72 sapi/thttpd/thttpd.c if (TG(sbuf).c != 0) { TG 73 sapi/thttpd/thttpd.c smart_str_appendl_ex(&TG(sbuf), str, str_length, 1); TG 78 sapi/thttpd/thttpd.c PHP_SYS_CALL(n = send(TG(hc)->conn_fd, str, str_length, 0);); TG 82 sapi/thttpd/thttpd.c smart_str_appendl_ex(&TG(sbuf), str, str_length, 1); TG 89 sapi/thttpd/thttpd.c TG(hc)->bytes_sent += n; TG 112 sapi/thttpd/thttpd.c if (TG(sbuf).c == 0) { TG 113 sapi/thttpd/thttpd.c PHP_SYS_CALL(n = writev(TG(hc)->conn_fd, vec, nvec);); TG 124 sapi/thttpd/thttpd.c TG(hc)->bytes_sent += n; TG 148 sapi/thttpd/thttpd.c smart_str_appendl_ex(&TG(sbuf), vec->iov_base, vec->iov_len, 1); TG 193 sapi/thttpd/thttpd.c TG(hc)->status = SG(sapi_headers).http_response_code; TG 204 sapi/thttpd/thttpd.c if (!TG(seen_cl) && strncasecmp(h->header, CL_TOKEN, sizeof(CL_TOKEN)-1) == 0) { TG 205 sapi/thttpd/thttpd.c TG(seen_cl) = 1; TG 206 sapi/thttpd/thttpd.c } else if (!TG(seen_cn) && strncasecmp(h->header, CN_TOKEN, sizeof(CN_TOKEN)-1) == 0) { TG 207 sapi/thttpd/thttpd.c TG(seen_cn) = 1; TG 223 sapi/thttpd/thttpd.c if (TG(seen_cl) && !TG(seen_cn) && TG(hc)->do_keep_alive) { TG 226 sapi/thttpd/thttpd.c TG(hc)->do_keep_alive = 0; TG 244 sapi/thttpd/thttpd.c #define SIZEOF_UNCONSUMED_BYTES() (TG(hc)->read_idx - TG(hc)->checked_idx) TG 245 sapi/thttpd/thttpd.c #define CONSUME_BYTES(n) do { TG(hc)->checked_idx += (n); } while (0) TG 252 sapi/thttpd/thttpd.c if (TG(unconsumed_length) > 0) { TG 253 sapi/thttpd/thttpd.c read_bytes = MIN(TG(unconsumed_length), count_bytes); TG 254 sapi/thttpd/thttpd.c memcpy(buffer, TG(hc)->read_buf + TG(hc)->checked_idx, read_bytes); TG 255 sapi/thttpd/thttpd.c TG(unconsumed_length) -= read_bytes; TG 264 sapi/thttpd/thttpd.c return TG(hc)->cookie; TG 284 sapi/thttpd/thttpd.c if (TG(hc)->one_one) { TG 290 sapi/thttpd/thttpd.c p = httpd_ntoa(&TG(hc)->client_addr); TG 297 sapi/thttpd/thttpd.c TG(hc)->hs->port)); TG 300 sapi/thttpd/thttpd.c memcpy(buf + 1, TG(hc)->pathinfo, strlen(TG(hc)->pathinfo) + 1); TG 304 sapi/thttpd/thttpd.c memcpy(buf + 1, TG(hc)->origfilename, strlen(TG(hc)->origfilename) + 1); TG 308 sapi/thttpd/thttpd.c if (TG(hc)->field[0]) { \ TG 309 sapi/thttpd/thttpd.c php_register_variable(#name, TG(hc)->field, track_vars_array TSRMLS_CC); \ TG 324 sapi/thttpd/thttpd.c if (TG(hc)->contentlength != -1) { TG 327 sapi/thttpd/thttpd.c TG(hc)->contentlength)); TG 330 sapi/thttpd/thttpd.c if (TG(hc)->authorization[0]) TG 367 sapi/thttpd/thttpd.c if (nfd) *nfd = TG(hc)->conn_fd; TG 439 sapi/thttpd/thttpd.c TG(seen_cl) = 0; TG 440 sapi/thttpd/thttpd.c TG(seen_cn) = 0; TG 441 sapi/thttpd/thttpd.c TG(sbuf).c = 0; TG 442 sapi/thttpd/thttpd.c SG(request_info).query_string = TG(hc)->query?strdup(TG(hc)->query):NULL; TG 444 sapi/thttpd/thttpd.c smart_str_appends_ex(&s, TG(hc)->hs->cwd, 1); TG 445 sapi/thttpd/thttpd.c smart_str_appends_ex(&s, TG(hc)->expnfilename, 1); TG 451 sapi/thttpd/thttpd.c smart_str_appends_ex(&s, TG(hc)->origfilename, 1); TG 454 sapi/thttpd/thttpd.c SG(request_info).request_method = httpd_method_str(TG(hc)->method); TG 455 sapi/thttpd/thttpd.c if (TG(hc)->one_one) SG(request_info).proto_num = 1001; TG 458 sapi/thttpd/thttpd.c if (TG(hc)->contenttype) TG 459 sapi/thttpd/thttpd.c SG(request_info).content_type = strdup(TG(hc)->contenttype); TG 460 sapi/thttpd/thttpd.c SG(request_info).content_length = TG(hc)->contentlength == -1 ? 0 TG 461 sapi/thttpd/thttpd.c : TG(hc)->contentlength; TG 463 sapi/thttpd/thttpd.c TG(unconsumed_length) = SG(request_info).content_length; TG 465 sapi/thttpd/thttpd.c php_handle_auth_data(TG(hc)->authorization TSRMLS_CC); TG 470 sapi/thttpd/thttpd.c smart_str_free_ex(&TG(sbuf), 1); TG 658 sapi/thttpd/thttpd.c TG(hc) = hc; TG 677 sapi/thttpd/thttpd.c if (TG(seen_cl) == 0 || TG(seen_cn) == 1) { TG 678 sapi/thttpd/thttpd.c TG(hc)->do_keep_alive = 0; TG 681 sapi/thttpd/thttpd.c if (TG(sbuf).c != 0) { TG 682 sapi/thttpd/thttpd.c if (TG(hc)->response) TG 683 sapi/thttpd/thttpd.c free(TG(hc)->response); TG 685 sapi/thttpd/thttpd.c TG(hc)->response = TG(sbuf).c; TG 686 sapi/thttpd/thttpd.c TG(hc)->responselen = TG(sbuf).len; TG 687 sapi/thttpd/thttpd.c TG(hc)->maxresponse = TG(sbuf).a; TG 689 sapi/thttpd/thttpd.c TG(sbuf).c = 0; TG 690 sapi/thttpd/thttpd.c TG(sbuf).len = 0; TG 691 sapi/thttpd/thttpd.c TG(sbuf).a = 0; TG 712 sapi/thttpd/thttpd.c TG(on_close) = arg; TG 718 sapi/thttpd/thttpd.c if (TG(on_close)) TG(on_close)(fd); TG 724 sapi/thttpd/thttpd.c return TG(hc)->conn_fd; TG 731 sapi/thttpd/thttpd.c TG(hc)->file_address = (char *) 1; TG 59 sapi/tux/php_tux.c if (TG(number_vec)) { TG 60 sapi/tux/php_tux.c struct iovec *vec = TG(header_vec); TG 62 sapi/tux/php_tux.c n = TG(number_vec); TG 67 sapi/tux/php_tux.c if ((m = writev(TG(req)->sock, vec, n)) == -1 && errno == EPIPE) TG 71 sapi/tux/php_tux.c TG(req)->bytes_sent += str_length; TG 73 sapi/tux/php_tux.c TG(number_vec) = 0; TG 80 sapi/tux/php_tux.c n = send(TG(req)->sock, str, estr - str, 0); TG 94 sapi/tux/php_tux.c TG(req)->bytes_sent += n; TG 124 sapi/tux/php_tux.c TG(req)->http_status = SG(sapi_headers).http_response_code; TG 126 sapi/tux/php_tux.c if (TG(tux_action) == TUX_ACTION_FINISH_CLOSE_REQ && TG(req)->http_version == HTTP_1_1) TG 135 sapi/tux/php_tux.c TG(tux_action) = TUX_ACTION_FINISH_REQ; TG 154 sapi/tux/php_tux.c TG(number_vec) = n; TG 155 sapi/tux/php_tux.c TG(header_vec) = vec; TG 167 sapi/tux/php_tux.c TG(req)->objectlen = count_bytes; TG 168 sapi/tux/php_tux.c TG(req)->object_addr = buffer; TG 169 sapi/tux/php_tux.c if (tux(TUX_ACTION_READ_POST_DATA, TG(req))) TG 172 sapi/tux/php_tux.c TG(read_post_data) = 1; TG 174 sapi/tux/php_tux.c return TG(req)->objectlen; TG 184 sapi/tux/php_tux.c return TG(req)->cookies; TG 210 sapi/tux/php_tux.c p = inet_ntoa(TG(req)->client_host); TG 218 sapi/tux/php_tux.c snprintf(buf, sizeof(buf), "%d", CGI_SERVER_PORT(TG(req))); TG 222 sapi/tux/php_tux.c snprintf(buf, BUF_SIZE, "/%s", TG(hc)->pathinfo); TG 225 sapi/tux/php_tux.c snprintf(buf, BUF_SIZE, "/%s", TG(hc)->origfilename); TG 230 sapi/tux/php_tux.c if (TG(req)->field[0]) { \ TG 231 sapi/tux/php_tux.c php_register_variable(#name, TG(req)->field, track_vars_array TSRMLS_CC); \ TG 243 sapi/tux/php_tux.c if (TG(hc)->contentlength != -1) { TG 244 sapi/tux/php_tux.c snprintf(buf, sizeof(buf), "%ld", (long) TG(hc)->contentlength); TG 250 sapi/tux/php_tux.c if (TG(hc)->authorization[0]) TG 322 sapi/tux/php_tux.c TG(number_vec) = 0; TG 323 sapi/tux/php_tux.c TG(header_vec) = NULL; TG 324 sapi/tux/php_tux.c SG(request_info).query_string = strdup(TG(req)->query); TG 327 sapi/tux/php_tux.c smart_str_appends_ex(&s, TG(req)->query, 1); TG 336 sapi/tux/php_tux.c smart_str_appends_ex(&s, TG(req)->objectname, 1); TG 339 sapi/tux/php_tux.c SG(request_info).request_method = CGI_REQUEST_METHOD(TG(req)); TG 340 sapi/tux/php_tux.c if(TG(req)->http_version == HTTP_1_1) SG(request_info).proto_num = 1001; TG 343 sapi/tux/php_tux.c SG(request_info).content_type = TG(req)->content_type; TG 347 sapi/tux/php_tux.c php_handle_auth_data(TG(hc)->authorization TSRMLS_CC); TG 353 sapi/tux/php_tux.c if (TG(header_vec)) { TG 355 sapi/tux/php_tux.c free(TG(header_vec)[0].iov_base); TG 356 sapi/tux/php_tux.c free(TG(header_vec)); TG 395 sapi/tux/php_tux.c TG(req) = req; TG 396 sapi/tux/php_tux.c TG(tux_action) = TUX_ACTION_FINISH_CLOSE_REQ; TG 404 sapi/tux/php_tux.c return tux(TG(tux_action), req); TG 409 sapi/tux/php_tux.c TG(on_close) = arg; TG 416 sapi/tux/php_tux.c if (TG(on_close)) TG(on_close)(fd); TG 423 sapi/tux/php_tux.c return TG(req)->sock; TG 430 sapi/tux/php_tux.c TG(req)->event = PHP_TUX_BACKGROUND_CONN; TG 431 sapi/tux/php_tux.c tux(TUX_ACTION_POSTPONE_REQ, TG(req)); TG 432 sapi/tux/php_tux.c TG(tux_action) = TUX_ACTION_EVENTLOOP;