From: Stefan Esser Date: Sun, 28 Nov 2004 13:32:29 +0000 (+0000) Subject: Fixed: Correctly Initialize fields X-Git-Tag: RELEASE_0_2~614 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c02b2d2d459d8c6fbed1351740b5f0c16142b08a;p=php Fixed: Correctly Initialize fields --- 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