summaryrefslogtreecommitdiff
path: root/main/SAPI.c
diff options
context:
space:
mode:
authorRasmus Lerdorf <rasmus@php.net>2001-07-17 16:46:07 +0000
committerRasmus Lerdorf <rasmus@php.net>2001-07-17 16:46:07 +0000
commit9bc97ac865c74495622d4d71c3a84c9d65c8baf7 (patch)
tree3fa189505f3ee927900bd63c05494ad55a55931d /main/SAPI.c
parent6bd084cb0af39bf4a246c93aa0d8d8e0d280e455 (diff)
downloadphp-git-9bc97ac865c74495622d4d71c3a84c9d65c8baf7.tar.gz
Add always_populate_raw_post_data ini directive and default it to 0 to
maintain current behaviour. If this is turned on then $HTTP_RAW_POST_DATA is always populated with a copy of the raw post data. @ - Add config option (always_populate_raw_post_data) which when enabled @ will always populate $HTTP_RAW_POST_DATA regardless of the post mime @ type (Rasmus)
Diffstat (limited to 'main/SAPI.c')
-rw-r--r--main/SAPI.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/main/SAPI.c b/main/SAPI.c
index 499a2f682d..edab6bbe56 100644
--- a/main/SAPI.c
+++ b/main/SAPI.c
@@ -125,6 +125,7 @@ static void sapi_read_post_data(SLS_D)
char *p;
char oldchar=0;
void (*post_reader_func)(SLS_D);
+ PLS_FETCH();
/* dedicated implementation for increased performance:
@@ -162,6 +163,9 @@ static void sapi_read_post_data(SLS_D)
}
post_reader_func(SLS_C);
SG(request_info).content_type_dup = content_type;
+ if(PG(always_populate_raw_post_data) && sapi_module.default_post_reader) {
+ sapi_module.default_post_reader(SLS_C);
+ }
}