Searched defs:sapi_headers (Results 1 - 9 of 9) 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.c353 static int sapi_cgi_send_headers(sapi_headers_struct *sapi_headers) /* {{{ */ argument
359 int response_status = SG(sapi_headers).http_response_code;
365 if (CGIG(nph) || SG(sapi_headers).http_response_code != 200)
370 if (CGIG(rfc2616_headers) && SG(sapi_headers).http_status_line) {
372 len = slprintf(buf, SAPI_CGI_MAX_HEADER_LENGTH, "%s\r\n", SG(sapi_headers).http_status_line);
373 if ((s = strchr(SG(sapi_headers).http_status_line, ' '))) {
384 if (SG(sapi_headers).http_status_line &&
385 (s = strchr(SG(sapi_headers).http_status_line, ' ')) != 0 &&
386 (s - SG(sapi_headers).http_status_line) >= 5 &&
387 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/cli/
H A Dphp_cli_server.c418 zend_llist_apply_with_argument(&SG(sapi_headers).headers, (llist_apply_with_arg_func_t)add_response_header, return_value);
514 static int sapi_cli_server_discard_headers(sapi_headers_struct *sapi_headers) /* {{{ */{ argument
519 static int sapi_cli_server_send_headers(sapi_headers_struct *sapi_headers) /* {{{ */ argument
530 if (SG(sapi_headers).http_status_line) {
531 smart_str_appends(&buffer, SG(sapi_headers).http_status_line);
534 append_http_status_line(&buffer, client->request.protocol_version, SG(sapi_headers).http_response_code, 0);
539 h = (sapi_header_struct*)zend_llist_get_first_ex(&sapi_headers->headers, &pos);
545 h = (sapi_header_struct*)zend_llist_get_next_ex(&sapi_headers->headers, &pos);
1944 php_cli_server_log_response(client, SG(sapi_headers).http_response_code, NULL);
2012 SG(sapi_headers)
[all...]
H A Dphp_cli.c408 static int sapi_cli_send_headers(sapi_headers_struct *sapi_headers) /* {{{ */ argument
/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;
483 SG(sapi_headers).http_response_code = !r->status ? HTTP_OK : r->status;
/PHP_TRUNK/sapi/cgi/
H A Dcgi_main.c369 static int sapi_cgi_send_headers(sapi_headers_struct *sapi_headers) argument
375 int response_status = SG(sapi_headers).http_response_code;
381 if (CGIG(nph) || SG(sapi_headers).http_response_code != 200)
386 if (CGIG(rfc2616_headers) && SG(sapi_headers).http_status_line) {
388 len = slprintf(buf, SAPI_CGI_MAX_HEADER_LENGTH, "%s\r\n", SG(sapi_headers).http_status_line);
389 if ((s = strchr(SG(sapi_headers).http_status_line, ' '))) {
400 if (SG(sapi_headers).http_status_line &&
401 (s = strchr(SG(sapi_headers).http_status_line, ' ')) != 0 &&
402 (s - SG(sapi_headers).http_status_line) >= 5 &&
403 strncasecmp(SG(sapi_headers)
[all...]
/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;
1210 if (!&SG(sapi_headers).headers) {
1215 h = zend_llist_get_first_ex(&SG(sapi_headers).headers, &pos);
1236 h = zend_llist_get_next_ex(&SG(sapi_headers).headers, &pos);
/PHP_TRUNK/sapi/phpdbg/
H A Dphpdbg.c780 static int php_sapi_phpdbg_send_headers(sapi_headers_struct *sapi_headers) /* {{{ */ argument
1667 if (SG(sapi_headers).mimetype) {
1668 efree(SG(sapi_headers).mimetype);
1669 SG(sapi_headers).mimetype = NULL;

Completed in 35 milliseconds