Browse Source

Fixed: Correctly Initialize fields

PHP-5.1
Stefan Esser 22 years ago
parent
commit
c02b2d2d45
  1. 5
      main/SAPI.c

5
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

Loading…
Cancel
Save