Searched defs:sapi_headers (Results 1 - 10 of 10) sorted by relevance

/PHP_TRUNK/sapi/fpm/fpm/
H A Dfpm_log.c300 sapi_headers_struct *sapi_headers = &SG(sapi_headers); local
303 h = (sapi_header_struct*)zend_llist_get_first_ex(&sapi_headers->headers, &pos);
307 h = (sapi_header_struct*)zend_llist_get_next_ex(&sapi_headers->headers, &pos);
311 h = (sapi_header_struct*)zend_llist_get_next_ex(&sapi_headers->headers, &pos);
317 h = (sapi_header_struct*)zend_llist_get_next_ex(&sapi_headers->headers, &pos);
322 h = (sapi_header_struct*)zend_llist_get_next_ex(&sapi_headers->headers, &pos);
379 len2 = snprintf(b, FPM_LOG_BUFFER - len, "%d", SG(sapi_headers).http_response_code);
H A Dfpm_main.c345 static int sapi_cgi_send_headers(sapi_headers_struct *sapi_headers) argument
351 int response_status = SG(sapi_headers).http_response_code;
357 if (CGIG(nph) || SG(sapi_headers).http_response_code != 200)
362 if (CGIG(rfc2616_headers) && SG(sapi_headers).http_status_line) {
364 len = slprintf(buf, SAPI_CGI_MAX_HEADER_LENGTH, "%s\r\n", SG(sapi_headers).http_status_line);
365 if ((s = strchr(SG(sapi_headers).http_status_line, ' '))) {
376 if (SG(sapi_headers).http_status_line &&
377 (s = strchr(SG(sapi_headers).http_status_line, ' ')) != 0 &&
378 (s - SG(sapi_headers).http_status_line) >= 5 &&
379 strncasecmp(SG(sapi_headers)
[all...]
/PHP_TRUNK/sapi/nsapi/
H A Dnsapi.c517 static int sapi_nsapi_header_handler(sapi_header_struct *sapi_header, sapi_header_op_enum op, sapi_headers_struct *sapi_headers) argument
525 zend_llist_apply(&sapi_headers->headers, (llist_apply_func_t) php_nsapi_remove_header);
567 static int sapi_nsapi_send_headers(sapi_headers_struct *sapi_headers) argument
572 if (SG(sapi_headers).send_default_content_type) {
580 protocol_status(rc->sn, rc->rq, SG(sapi_headers).http_response_code, NULL);
1027 SG(sapi_headers).http_response_code = (error_directive) ? rq->status_num : 200;
/PHP_TRUNK/sapi/litespeed/
H A Dlsapi_main.c363 static int sapi_lsapi_send_headers(sapi_headers_struct *sapi_headers) argument
368 LSAPI_SetRespStatus( SG(sapi_headers).http_response_code );
370 h = zend_llist_get_first_ex(&sapi_headers->headers, &pos);
375 h = zend_llist_get_next_ex(&sapi_headers->headers, &pos);
377 if (SG(sapi_headers).send_default_content_type) {
472 SG(sapi_headers).http_response_code = 200;
1206 if (!&SG(sapi_headers).headers) {
1211 h = zend_llist_get_first_ex(&SG(sapi_headers).headers, &pos);
1232 h = zend_llist_get_next_ex(&SG(sapi_headers).headers, &pos);
/PHP_TRUNK/sapi/phpdbg/
H A Dphpdbg.c489 static int php_sapi_phpdbg_send_headers(sapi_headers_struct *sapi_headers) /* {{{ */ argument
/PHP_TRUNK/main/
H A DSAPI.h124 sapi_headers_struct sapi_headers; member in struct:_sapi_globals_struct
238 int (*header_handler)(sapi_header_struct *sapi_header, sapi_header_op_enum op, sapi_headers_struct *sapi_headers);
239 int (*send_headers)(sapi_headers_struct *sapi_headers);
/PHP_TRUNK/sapi/cgi/
H A Dcgi_main.c355 static int sapi_cgi_send_headers(sapi_headers_struct *sapi_headers) argument
361 int response_status = SG(sapi_headers).http_response_code;
367 if (CGIG(nph) || SG(sapi_headers).http_response_code != 200)
372 if (CGIG(rfc2616_headers) && SG(sapi_headers).http_status_line) {
374 len = slprintf(buf, SAPI_CGI_MAX_HEADER_LENGTH, "%s\r\n", SG(sapi_headers).http_status_line);
375 if ((s = strchr(SG(sapi_headers).http_status_line, ' '))) {
386 if (SG(sapi_headers).http_status_line &&
387 (s = strchr(SG(sapi_headers).http_status_line, ' ')) != 0 &&
388 (s - SG(sapi_headers).http_status_line) >= 5 &&
389 strncasecmp(SG(sapi_headers)
[all...]
/PHP_TRUNK/sapi/cli/
H A Dphp_cli.c404 static int sapi_cli_send_headers(sapi_headers_struct *sapi_headers) /* {{{ */ argument
H A Dphp_cli_server.c422 zend_llist_apply_with_argument(&SG(sapi_headers).headers, (llist_apply_with_arg_func_t)add_response_header, return_value);
518 static int sapi_cli_server_discard_headers(sapi_headers_struct *sapi_headers) /* {{{ */{ argument
523 static int sapi_cli_server_send_headers(sapi_headers_struct *sapi_headers) /* {{{ */ argument
534 if (SG(sapi_headers).http_status_line) {
535 smart_str_appends(&buffer, SG(sapi_headers).http_status_line);
538 append_http_status_line(&buffer, client->request.protocol_version, SG(sapi_headers).http_response_code, 0);
543 h = (sapi_header_struct*)zend_llist_get_first_ex(&sapi_headers->headers, &pos);
549 h = (sapi_header_struct*)zend_llist_get_next_ex(&sapi_headers->headers, &pos);
1933 php_cli_server_log_response(client, SG(sapi_headers).http_response_code, NULL);
2001 SG(sapi_headers)
[all...]
/PHP_TRUNK/sapi/apache2handler/
H A Dsapi_apache2.c89 php_apache_sapi_header_handler(sapi_header_struct *sapi_header, sapi_header_op_enum op, sapi_headers_struct *sapi_headers) argument
151 php_apache_sapi_send_headers(sapi_headers_struct *sapi_headers) argument
154 const char *sline = SG(sapi_headers).http_status_line;
156 ctx->r->status = SG(sapi_headers).http_response_code;
309 r->status = SG(sapi_headers).http_response_code;
478 SG(sapi_headers).http_response_code = !r->status ? HTTP_OK : r->status;

Completed in 21 milliseconds