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

/PHP_TRUNK/ext/standard/
H A Dhead.c269 sapi_header_struct *sapi_header = (sapi_header_struct *)data; local
271 if (arg && sapi_header) {
272 add_next_index_string((zval *)arg, (char *)(sapi_header->header));
/PHP_TRUNK/main/
H A DSAPI.c125 SAPI_API void sapi_free_header(sapi_header_struct *sapi_header) argument
127 efree(sapi_header->header);
647 static void sapi_header_add_op(sapi_header_op_enum op, sapi_header_struct *sapi_header) argument
650 (SAPI_HEADER_ADD & sapi_module.header_handler(sapi_header, op, &SG(sapi_headers)))) {
652 char *colon_offset = strchr(sapi_header->header, ':');
658 sapi_remove_header(&SG(sapi_headers).headers, sapi_header->header, (int)strlen(sapi_header->header));
662 zend_llist_add_element(&SG(sapi_headers).headers, (void *) sapi_header);
664 sapi_free_header(sapi_header);
670 sapi_header_struct sapi_header; local
[all...]
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);
240 void (*send_header)(sapi_header_struct *sapi_header, void *server_context);
/PHP_TRUNK/sapi/aolserver/
H A Daolserver.c114 php_ns_sapi_header_handler(sapi_header_struct *sapi_header, sapi_headers_struct *sapi_headers) argument
119 header_name = sapi_header->header;
137 sapi_free_header(sapi_header);
/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);
166 static int sapi_apache_header_handler(sapi_header_struct *sapi_header, sapi_header_op_enum op, sapi_headers_struct *sapi_headers) argument
180 table_unset(r->headers_out, sapi_header->header);
185 header_name = sapi_header->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) 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.c95 php_apache_sapi_header_handler(sapi_header_struct *sapi_header, sapi_header_op_enum op, sapi_headers_struct *sapi_headers) argument
104 apr_table_unset(ctx->r->headers_out, sapi_header->header);
113 val = strchr(sapi_header->header, ':');
126 if (!strcasecmp(sapi_header->header, "content-type")) {
131 } else if (!strcasecmp(sapi_header->header, "content-length")) {
142 apr_table_set(ctx->r->headers_out, sapi_header->header, val);
144 apr_table_add(ctx->r->headers_out, sapi_header->header, val);
/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);
311 static int sapi_apache_header_handler(sapi_header_struct *sapi_header, sapi_header_op_enum op, sapi_headers_struct *sapi_headers) 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/cli/
H A Dphp_cli.c414 static void sapi_cli_send_header(sapi_header_struct *sapi_header, void *server_context) /* {{{ */ argument
/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
153 header_name = sapi_header->header;
167 efree(sapi_header->header);
/PHP_TRUNK/sapi/embed/
H A Dphp_embed.c93 static void php_embed_send_header(sapi_header_struct *sapi_header, void *server_context) argument
/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
225 static void accumulate_header_length(sapi_header_struct *sapi_header, uint *total_length) argument
227 *total_length += sapi_header->header_len+2;
231 static void concat_header(sapi_header_struct *sapi_header, char **combined_headers_ptr) 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) argument
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) argument
530 php_nsapi_remove_header(sapi_header);
536 header_name = pool_strdup(rc->sn->pool, sapi_header->header);
/PHP_TRUNK/sapi/phpdbg/
H A Dphpdbg.c493 static void php_sapi_phpdbg_send_header(sapi_header_struct *sapi_header, void *server_context) /* {{{ */ 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
77 header_name = sapi_header->header;
91 sapi_free_header(sapi_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) argument
145 static void accumulate_header_length(sapi_header_struct *sapi_header, uint *total_length) argument
147 *total_length += sapi_header->header_len+2;
151 static void concat_header(sapi_header_struct *sapi_header, char **combined_headers_ptr) 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/webjames/
H A Dwebjames.c64 static void sapi_webjames_send_header(sapi_header_struct *sapi_header, void *server_context) argument
67 char *header = sapi_header->header;
68 int len = sapi_header->header_len;
70 while (sapi_header && len > 0) {

Completed in 27 milliseconds