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.c346 static int sapi_cgi_send_headers(sapi_headers_struct *sapi_headers) argument
352 int response_status = SG(sapi_headers).http_response_code;
358 if (CGIG(nph) || SG(sapi_headers).http_response_code != 200)
363 if (CGIG(rfc2616_headers) && SG(sapi_headers).http_status_line) {
365 len = slprintf(buf, SAPI_CGI_MAX_HEADER_LENGTH, "%s\r\n", SG(sapi_headers).http_status_line);
366 if ((s = strchr(SG(sapi_headers).http_status_line, ' '))) {
377 if (SG(sapi_headers).http_status_line &&
378 (s = strchr(SG(sapi_headers).http_status_line, ' ')) != 0 &&
379 (s - SG(sapi_headers).http_status_line) >= 5 &&
380 strncasecmp(SG(sapi_headers)
[all...]
/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/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/sapi/apache2handler/
H A Dsapi_apache2.c95 php_apache_sapi_header_handler(sapi_header_struct *sapi_header, sapi_header_op_enum op, sapi_headers_struct *sapi_headers) argument
157 php_apache_sapi_send_headers(sapi_headers_struct *sapi_headers) argument
160 const char *sline = SG(sapi_headers).http_status_line;
162 ctx->r->status = SG(sapi_headers).http_response_code;
315 r->status = SG(sapi_headers).http_response_code;
484 SG(sapi_headers).http_response_code = !r->status ? HTTP_OK : r->status;
/PHP_TRUNK/sapi/cgi/
H A Dcgi_main.c357 static int sapi_cgi_send_headers(sapi_headers_struct *sapi_headers) argument
363 int response_status = SG(sapi_headers).http_response_code;
369 if (CGIG(nph) || SG(sapi_headers).http_response_code != 200)
374 if (CGIG(rfc2616_headers) && SG(sapi_headers).http_status_line) {
376 len = slprintf(buf, SAPI_CGI_MAX_HEADER_LENGTH, "%s\r\n", SG(sapi_headers).http_status_line);
377 if ((s = strchr(SG(sapi_headers).http_status_line, ' '))) {
388 if (SG(sapi_headers).http_status_line &&
389 (s = strchr(SG(sapi_headers).http_status_line, ' ')) != 0 &&
390 (s - SG(sapi_headers).http_status_line) >= 5 &&
391 strncasecmp(SG(sapi_headers)
[all...]
/PHP_TRUNK/sapi/cli/
H A Dphp_cli.c406 static int sapi_cli_send_headers(sapi_headers_struct *sapi_headers) /* {{{ */ argument
H A Dphp_cli_server.c423 zend_llist_apply_with_argument(&SG(sapi_headers).headers, (llist_apply_with_arg_func_t)add_response_header, return_value);
519 static int sapi_cli_server_discard_headers(sapi_headers_struct *sapi_headers) /* {{{ */{ argument
524 static int sapi_cli_server_send_headers(sapi_headers_struct *sapi_headers) /* {{{ */ argument
535 if (SG(sapi_headers).http_status_line) {
536 smart_str_appends(&buffer, SG(sapi_headers).http_status_line);
539 append_http_status_line(&buffer, client->request.protocol_version, SG(sapi_headers).http_response_code, 0);
544 h = (sapi_header_struct*)zend_llist_get_first_ex(&sapi_headers->headers, &pos);
550 h = (sapi_header_struct*)zend_llist_get_next_ex(&sapi_headers->headers, &pos);
1934 php_cli_server_log_response(client, SG(sapi_headers).http_response_code, NULL);
2002 SG(sapi_headers)
[all...]

Completed in 20 milliseconds