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

/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/aolserver/
H A Daolserver.c114 php_ns_sapi_header_handler(sapi_header_struct *sapi_header, sapi_headers_struct *sapi_headers) argument
148 php_ns_sapi_send_headers(sapi_headers_struct *sapi_headers) argument
150 if(SG(sapi_headers).send_default_content_type) {
154 Ns_ConnFlushHeaders(NSG(conn), SG(sapi_headers).http_response_code);
459 SG(sapi_headers).http_response_code = 200;
/PHP_TRUNK/sapi/apache/
H A Dmod_php7.c38 static int sapi_apache_header_handler(sapi_header_struct *sapi_header, sapi_header_op_enum op, sapi_headers_struct *sapi_headers);
39 static int sapi_apache_send_headers(sapi_headers_struct *sapi_headers);
166 static int sapi_apache_header_handler(sapi_header_struct *sapi_header, sapi_header_op_enum op, sapi_headers_struct *sapi_headers) argument
221 static int sapi_apache_send_headers(sapi_headers_struct *sapi_headers) argument
224 const char *sline = SG(sapi_headers).http_status_line;
231 r->status = SG(sapi_headers).http_response_code;
532 SG(sapi_headers).http_response_code = r->status;
/PHP_TRUNK/sapi/apache2filter/
H A Dsapi_apache2.c94 php_apache_sapi_header_handler(sapi_header_struct *sapi_header, sapi_header_op_enum op, sapi_headers_struct *sapi_headers) argument
144 php_apache_sapi_send_headers(sapi_headers_struct *sapi_headers) argument
148 ctx->r->status = SG(sapi_headers).http_response_code;
268 ctx->r->status = SG(sapi_headers).http_response_code;
401 SG(sapi_headers).http_response_code = !f->r->status ? HTTP_OK : f->r->status;
/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;
310 r->status = SG(sapi_headers).http_response_code;
479 SG(sapi_headers).http_response_code = !r->status ? HTTP_OK : r->status;
/PHP_TRUNK/sapi/apache_hooks/
H A Dmod_php7.c37 static int sapi_apache_header_handler(sapi_header_struct *sapi_header, sapi_header_op_enum op, sapi_headers_struct *sapi_headers);
38 static int sapi_apache_send_headers(sapi_headers_struct *sapi_headers);
311 static int sapi_apache_header_handler(sapi_header_struct *sapi_header, sapi_header_op_enum op, sapi_headers_struct *sapi_headers) argument
364 static int sapi_apache_send_headers(sapi_headers_struct *sapi_headers) argument
370 ((request_rec *) SG(server_context))->status = SG(sapi_headers).http_response_code;
585 SG(sapi_headers).http_response_code = r->status;
/PHP_TRUNK/sapi/caudium/
H A Dcaudium.c338 sapi_headers_struct *sapi_headers)
360 php_caudium_low_send_headers(sapi_headers_struct *sapi_headers) argument
374 push_int(SG(sapi_headers).http_response_code);
386 php_caudium_sapi_send_headers(sapi_headers_struct *sapi_headers) argument
389 THREAD_SAFE_RUN(res = php_caudium_low_send_headers(sapi_headers), "send headers");
620 SG(sapi_headers).http_response_code = 200;
337 php_caudium_sapi_header_handler(sapi_header_struct *sapi_header, sapi_headers_struct *sapi_headers) argument
/PHP_TRUNK/sapi/cgi/
H A Dcgi_main.c406 static int sapi_cgi_send_headers(sapi_headers_struct *sapi_headers) argument
412 int response_status = SG(sapi_headers).http_response_code;
418 if (CGIG(nph) || SG(sapi_headers).http_response_code != 200)
423 if (CGIG(rfc2616_headers) && SG(sapi_headers).http_status_line) {
425 len = slprintf(buf, SAPI_CGI_MAX_HEADER_LENGTH, "%s\r\n", SG(sapi_headers).http_status_line);
426 if ((s = strchr(SG(sapi_headers).http_status_line, ' '))) {
437 if (SG(sapi_headers).http_status_line &&
438 (s = strchr(SG(sapi_headers).http_status_line, ' ')) != 0 &&
439 (s - SG(sapi_headers).http_status_line) >= 5 &&
440 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.c472 if (!&SG(sapi_headers).headers) {
476 zend_llist_apply_with_argument(&SG(sapi_headers).headers, (llist_apply_with_arg_func_t)add_response_header, return_value);
572 static int sapi_cli_server_discard_headers(sapi_headers_struct *sapi_headers) /* {{{ */{ argument
577 static int sapi_cli_server_send_headers(sapi_headers_struct *sapi_headers) /* {{{ */ argument
588 if (SG(sapi_headers).http_status_line) {
589 smart_str_appends(&buffer, SG(sapi_headers).http_status_line);
592 append_http_status_line(&buffer, client->request.protocol_version, SG(sapi_headers).http_response_code, 0);
597 h = (sapi_header_struct*)zend_llist_get_first_ex(&sapi_headers->headers, &pos);
603 h = (sapi_header_struct*)zend_llist_get_next_ex(&sapi_headers->headers, &pos);
1982 php_cli_server_log_response(client, SG(sapi_headers)
[all...]
/PHP_TRUNK/sapi/continuity/
H A Dcapi.c146 static int sapi_capi_header_handler(sapi_header_struct * sapi_header, sapi_headers_struct * sapi_headers) argument
177 static int sapi_capi_send_headers(sapi_headers_struct * sapi_headers) argument
187 if (SG(sapi_headers).send_default_content_type) {
191 httpFset_status(rc->t, SG(sapi_headers).http_response_code, NULL);
427 SG(sapi_headers).http_response_code = 200;
/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.c394 static int sapi_cgi_send_headers(sapi_headers_struct *sapi_headers) argument
400 int response_status = SG(sapi_headers).http_response_code;
406 if (CGIG(nph) || SG(sapi_headers).http_response_code != 200)
411 if (CGIG(rfc2616_headers) && SG(sapi_headers).http_status_line) {
413 len = slprintf(buf, SAPI_CGI_MAX_HEADER_LENGTH, "%s\r\n", SG(sapi_headers).http_status_line);
414 if ((s = strchr(SG(sapi_headers).http_status_line, ' '))) {
425 if (SG(sapi_headers).http_status_line &&
426 (s = strchr(SG(sapi_headers).http_status_line, ' ')) != 0 &&
427 (s - SG(sapi_headers).http_status_line) >= 5 &&
428 strncasecmp(SG(sapi_headers)
[all...]
/PHP_TRUNK/sapi/isapi/
H A Dphp7isapi.c218 static int sapi_isapi_header_handler(sapi_header_struct *sapi_header, sapi_header_op_enum op, sapi_headers_struct *sapi_headers) argument
242 static int sapi_isapi_send_headers(sapi_headers_struct *sapi_headers) argument
252 if (SG(sapi_headers).send_default_content_type) {
256 zend_llist_apply_with_argument(&SG(sapi_headers).headers, (llist_apply_with_arg_func_t) accumulate_header_length, (void *) &total_length);
261 if (SG(sapi_headers).send_default_content_type) {
265 zend_llist_apply_with_argument(&SG(sapi_headers).headers, (llist_apply_with_arg_func_t) concat_header, (void *) &combined_headers_ptr);
270 switch (SG(sapi_headers).http_response_code) {
281 const char *sline = SG(sapi_headers).http_status_line;
294 snprintf(status_buf, MAX_STATUS_LENGTH, "%d Undescribed", SG(sapi_headers).http_response_code);
304 lpECB->dwHttpStatusCode = SG(sapi_headers)
[all...]
/PHP_TRUNK/sapi/litespeed/
H A Dlsapi_main.c396 static int sapi_lsapi_send_headers(sapi_headers_struct *sapi_headers) argument
401 LSAPI_SetRespStatus( SG(sapi_headers).http_response_code );
403 h = zend_llist_get_first_ex(&sapi_headers->headers, &pos);
408 h = zend_llist_get_next_ex(&sapi_headers->headers, &pos);
410 if (SG(sapi_headers).send_default_content_type) {
505 SG(sapi_headers).http_response_code = 200;
1239 if (!&SG(sapi_headers).headers) {
1244 h = zend_llist_get_first_ex(&SG(sapi_headers).headers, &pos);
1265 h = zend_llist_get_next_ex(&SG(sapi_headers).headers, &pos);
/PHP_TRUNK/sapi/milter/
H A Dphp_milter.c871 static int sapi_milter_send_headers(sapi_headers_struct *sapi_headers) argument
/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/phpdbg/
H A Dphpdbg.c485 static int php_sapi_phpdbg_send_headers(sapi_headers_struct *sapi_headers) /* {{{ */ argument
/PHP_TRUNK/sapi/phttpd/
H A Dphttpd.c70 php_phttpd_sapi_header_handler(sapi_header_struct *sapi_header, sapi_headers_struct *sapi_headers) argument
75 http_sendheaders(PHG(cip)->fd, PHG(cip), SG(sapi_headers).http_response_code, NULL);
97 php_phttpd_sapi_send_headers(sapi_headers_struct *sapi_headers) argument
99 if (SG(sapi_headers).send_default_content_type) {
191 SG(sapi_headers).http_response_code = 200;
261 return SG(sapi_headers).http_response_code;
/PHP_TRUNK/sapi/pi3web/
H A Dpi3web_sapi.c139 static int sapi_pi3web_header_handler(sapi_header_struct *sapi_header, sapi_headers_struct *sapi_headers) argument
162 static int sapi_pi3web_send_headers(sapi_headers_struct *sapi_headers) argument
172 if (SG(sapi_headers).send_default_content_type) {
176 zend_llist_apply_with_argument(&SG(sapi_headers).headers, (llist_apply_with_arg_func_t) accumulate_header_length, (void *) &total_length);
181 if (SG(sapi_headers).send_default_content_type) {
185 zend_llist_apply_with_argument(&SG(sapi_headers).headers, (llist_apply_with_arg_func_t) concat_header, (void *) &combined_headers_ptr);
190 lpCB->dwHttpStatusCode = SG(sapi_headers).http_response_code;
194 if (SG(sapi_headers).http_status_line) {
195 efree(SG(sapi_headers).http_status_line);
196 SG(sapi_headers)
[all...]
/PHP_TRUNK/sapi/roxen/
H A Droxen.c327 sapi_headers_struct *sapi_headers)
349 php_roxen_low_send_headers(sapi_headers_struct *sapi_headers) argument
366 push_int(SG(sapi_headers).http_response_code);
378 php_roxen_sapi_send_headers(sapi_headers_struct *sapi_headers) argument
381 THREAD_SAFE_RUN(res = php_roxen_low_send_headers(sapi_headers), "send headers");
647 SG(sapi_headers).http_response_code = 200;
326 php_roxen_sapi_header_handler(sapi_header_struct *sapi_header, sapi_headers_struct *sapi_headers) argument
/PHP_TRUNK/sapi/thttpd/
H A Dthttpd.c173 static int sapi_thttpd_send_headers(sapi_headers_struct *sapi_headers) argument
182 if (!SG(sapi_headers).http_status_line) {
185 SG(sapi_headers).http_response_code);
189 ADD_VEC(SG(sapi_headers).http_status_line,
190 strlen(SG(sapi_headers).http_status_line));
193 TG(hc)->status = SG(sapi_headers).http_response_code;
195 if (SG(sapi_headers).send_default_content_type) {
199 h = zend_llist_get_first_ex(&sapi_headers->headers, &pos);
220 h = zend_llist_get_next_ex(&sapi_headers->headers, &pos);
458 SG(sapi_headers)
[all...]
/PHP_TRUNK/sapi/tux/
H A Dphp_tux.c99 static int sapi_tux_send_headers(sapi_headers_struct *sapi_headers) argument
118 len = slprintf(status_line, 30, "HTTP/1.1 %d NA\r\n", SG(sapi_headers).http_response_code);
123 TG(req)->http_status = SG(sapi_headers).http_response_code;
130 h = zend_llist_get_first_ex(&sapi_headers->headers, &pos);
147 h = zend_llist_get_next_ex(&sapi_headers->headers, &pos);
338 SG(sapi_headers).http_response_code = 200;

Completed in 44 milliseconds