Searched refs:sapi_header (Results 1 - 19 of 19) sorted by relevance

/PHP_TRUNK/main/
H A DSAPI.h193 SAPI_API void sapi_free_header(sapi_header_struct *sapi_header);
238 int (*header_handler)(sapi_header_struct *sapi_header, sapi_header_op_enum op, sapi_headers_struct *sapi_headers TSRMLS_DC);
240 void (*send_header)(sapi_header_struct *sapi_header, void *server_context TSRMLS_DC);
H A DSAPI.c122 SAPI_API void sapi_free_header(sapi_header_struct *sapi_header) argument
124 efree(sapi_header->header);
644 static void sapi_header_add_op(sapi_header_op_enum op, sapi_header_struct *sapi_header TSRMLS_DC)
647 (SAPI_HEADER_ADD & sapi_module.header_handler(sapi_header, op, &SG(sapi_headers) TSRMLS_CC))) {
649 char *colon_offset = strchr(sapi_header->header, ':');
655 sapi_remove_header(&SG(sapi_headers).headers, sapi_header->header, (int)strlen(sapi_header->header));
659 zend_llist_add_element(&SG(sapi_headers).headers, (void *) sapi_header);
661 sapi_free_header(sapi_header);
667 sapi_header_struct sapi_header; local
[all...]
/PHP_TRUNK/sapi/aolserver/
H A Daolserver.c114 php_ns_sapi_header_handler(sapi_header_struct *sapi_header, sapi_headers_struct *sapi_headers TSRMLS_DC) argument
119 header_name = sapi_header->header;
137 sapi_free_header(sapi_header);
/PHP_TRUNK/sapi/continuity/
H A Dcapi.c146 static int sapi_capi_header_handler(sapi_header_struct * sapi_header, sapi_headers_struct * sapi_headers TSRMLS_DC) argument
153 header_name = sapi_header->header;
167 efree(sapi_header->header);
/PHP_TRUNK/sapi/phttpd/
H A Dphttpd.c70 php_phttpd_sapi_header_handler(sapi_header_struct *sapi_header, sapi_headers_struct *sapi_headers TSRMLS_DC) argument
77 header_name = sapi_header->header;
91 sapi_free_header(sapi_header);
/PHP_TRUNK/sapi/webjames/
H A Dwebjames.c64 static void sapi_webjames_send_header(sapi_header_struct *sapi_header, void *server_context TSRMLS_DC) argument
67 char *header = sapi_header->header;
68 int len = sapi_header->header_len;
70 while (sapi_header && len > 0) {
/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 TSRMLS_DC);
166 static int sapi_apache_header_handler(sapi_header_struct *sapi_header, sapi_header_op_enum op, sapi_headers_struct *sapi_headers TSRMLS_DC) argument
180 table_unset(r->headers_out, sapi_header->header);
185 header_name = sapi_header->header;
/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 TSRMLS_DC);
311 static int sapi_apache_header_handler(sapi_header_struct *sapi_header, sapi_header_op_enum op, sapi_headers_struct *sapi_headers TSRMLS_DC) argument
325 table_unset(r->headers_out, sapi_header->header);
330 header_name = sapi_header->header;
/PHP_TRUNK/sapi/caudium/
H A Dcaudium.c337 php_caudium_sapi_header_handler(sapi_header_struct *sapi_header, argument
341 header_name = sapi_header->header;
350 sapi_free_header(sapi_header);
/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 TSRMLS_DC) argument
225 static void accumulate_header_length(sapi_header_struct *sapi_header, uint *total_length TSRMLS_DC) argument
227 *total_length += sapi_header->header_len+2;
231 static void concat_header(sapi_header_struct *sapi_header, char **combined_headers_ptr TSRMLS_DC) argument
233 memcpy(*combined_headers_ptr, sapi_header->header, sapi_header->header_len);
234 *combined_headers_ptr += sapi_header->header_len;
/PHP_TRUNK/sapi/nsapi/
H A Dnsapi.c492 static int php_nsapi_remove_header(sapi_header_struct *sapi_header TSRMLS_DC)
498 header_name = pool_strdup(rc->sn->pool, sapi_header->header);
517 static int sapi_nsapi_header_handler(sapi_header_struct *sapi_header, sapi_header_op_enum op, sapi_headers_struct *sapi_headers TSRMLS_DC) argument
530 php_nsapi_remove_header(sapi_header TSRMLS_CC);
536 header_name = pool_strdup(rc->sn->pool, sapi_header->header);
/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 TSRMLS_DC) argument
145 static void accumulate_header_length(sapi_header_struct *sapi_header, uint *total_length TSRMLS_DC) argument
147 *total_length += sapi_header->header_len+2;
151 static void concat_header(sapi_header_struct *sapi_header, char **combined_headers_ptr TSRMLS_DC) argument
153 memcpy(*combined_headers_ptr, sapi_header->header, sapi_header->header_len);
154 *combined_headers_ptr += sapi_header->header_len;
/PHP_TRUNK/sapi/roxen/
H A Droxen.c326 php_roxen_sapi_header_handler(sapi_header_struct *sapi_header, argument
330 header_name = sapi_header->header;
339 sapi_free_header(sapi_header);
/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 TSRMLS_DC) argument
103 apr_table_unset(ctx->r->headers_out, sapi_header->header);
112 val = strchr(sapi_header->header, ':');
115 sapi_free_header(sapi_header);
126 if (!strcasecmp(sapi_header->header, "content-type"))
128 else if (!strcasecmp(sapi_header->header, "content-length"))
131 apr_table_set(ctx->r->headers_out, sapi_header->header, val);
133 apr_table_add(ctx->r->headers_out, sapi_header->header, val);
/PHP_TRUNK/sapi/apache2handler/
H A Dsapi_apache2.c92 php_apache_sapi_header_handler(sapi_header_struct *sapi_header, sapi_header_op_enum op, sapi_headers_struct *sapi_headers TSRMLS_DC) argument
101 apr_table_unset(ctx->r->headers_out, sapi_header->header);
110 val = strchr(sapi_header->header, ':');
123 if (!strcasecmp(sapi_header->header, "content-type")) {
128 } else if (!strcasecmp(sapi_header->header, "content-length")) {
139 apr_table_set(ctx->r->headers_out, sapi_header->header, val);
141 apr_table_add(ctx->r->headers_out, sapi_header->header, val);
/PHP_TRUNK/sapi/cli/
H A Dphp_cli.c410 static void sapi_cli_send_header(sapi_header_struct *sapi_header, void *server_context TSRMLS_DC) /* {{{ */ argument
/PHP_TRUNK/ext/standard/
H A Dhead.c265 sapi_header_struct *sapi_header = (sapi_header_struct *)data; local
267 if (arg && sapi_header) {
268 add_next_index_string((zval *)arg, (char *)(sapi_header->header));
/PHP_TRUNK/sapi/embed/
H A Dphp_embed.c89 static void php_embed_send_header(sapi_header_struct *sapi_header, void *server_context TSRMLS_DC) argument
/PHP_TRUNK/sapi/phpdbg/
H A Dphpdbg.c495 static void php_sapi_phpdbg_send_header(sapi_header_struct *sapi_header, void *server_context TSRMLS_DC) /* {{{ */ argument

Completed in 28 milliseconds