summaryrefslogtreecommitdiff
path: root/main/SAPI.c
diff options
context:
space:
mode:
authorStefan Esser <sesser@php.net>2004-11-28 13:32:29 +0000
committerStefan Esser <sesser@php.net>2004-11-28 13:32:29 +0000
commitc02b2d2d459d8c6fbed1351740b5f0c16142b08a (patch)
treeb69a941cc8bc1d79b03b33dd39da9eefeee02ad9 /main/SAPI.c
parent9fb623c312bc07a235061a1ea1f0e3f28145500b (diff)
downloadphp-git-c02b2d2d459d8c6fbed1351740b5f0c16142b08a.tar.gz
Fixed: Correctly Initialize fields
Diffstat (limited to 'main/SAPI.c')
-rw-r--r--main/SAPI.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/main/SAPI.c b/main/SAPI.c
index 5c1dfe4373..a729eb5c4f 100644
--- a/main/SAPI.c
+++ b/main/SAPI.c
@@ -290,10 +290,14 @@ SAPI_API void sapi_activate_headers_only(TSRMLS_D)
/* SG(sapi_headers).http_response_code = 200; */
SG(sapi_headers).http_status_line = NULL;
+ SG(read_post_bytes) = 0;
+ SG(request_info).post_data = NULL;
+ SG(request_info).raw_post_data = NULL;
SG(request_info).current_user = NULL;
SG(request_info).current_user_length = 0;
SG(request_info).no_headers = 0;
SG(request_info).post_entry = NULL;
+ SG(global_request_time) = 0;
/*
* It's possible to override this general case in the activate() callback,
@@ -332,6 +336,7 @@ SAPI_API void sapi_activate(TSRMLS_D)
SG(request_info).current_user = NULL;
SG(request_info).current_user_length = 0;
SG(request_info).no_headers = 0;
+ SG(request_info).post_entry = NULL;
SG(global_request_time) = 0;
/* It's possible to override this general case in the activate() callback, if