summaryrefslogtreecommitdiff
path: root/sapi/apache2filter/php_apache.h
diff options
context:
space:
mode:
authorSascha Schumann <sas@php.net>2000-10-29 14:52:15 +0000
committerSascha Schumann <sas@php.net>2000-10-29 14:52:15 +0000
commit86b2d4fefed0fc0b9a4023937d5cfedc079372b2 (patch)
treecc82d344f534bf8a32919354d2d604f1a8b41533 /sapi/apache2filter/php_apache.h
parent7b0d92dd1886678b0c13749be40fad111456066d (diff)
downloadphp-git-86b2d4fefed0fc0b9a4023937d5cfedc079372b2.tar.gz
Add Request Body filters. This is a much nicer concept than
ap_get_req_body, since it is much more flexible and does not need to buffer everything in memory (PHP still does..).
Diffstat (limited to 'sapi/apache2filter/php_apache.h')
-rw-r--r--sapi/apache2filter/php_apache.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/sapi/apache2filter/php_apache.h b/sapi/apache2filter/php_apache.h
index f1feb4f65a..a5930f0689 100644
--- a/sapi/apache2filter/php_apache.h
+++ b/sapi/apache2filter/php_apache.h
@@ -5,7 +5,12 @@ typedef struct php_struct {
int state;
ap_bucket_brigade *bb;
ap_filter_t *f;
- int post_index;
+ /* Length of post_data buffer */
+ int post_len;
+ /* Index for reading from buffer */
+ int post_idx;
+ /* Buffer for request body filter */
+ char *post_data;
} php_struct;
void *merge_php_config(apr_pool_t *p, void *base_conf, void *new_conf);