Browse Source

Fixed crash because of uninitialized SG(sapi_headers).mimetype

PECL
Dmitry Stogov 19 years ago
parent
commit
80a7bf2910
  1. 2
      main/SAPI.c

2
main/SAPI.c

@ -301,6 +301,7 @@ SAPI_API void sapi_activate_headers_only(TSRMLS_D)
/* SG(sapi_headers).http_response_code = 200; */
SG(sapi_headers).http_status_line = NULL;
SG(sapi_headers).mimetype = NULL;
SG(read_post_bytes) = 0;
SG(request_info).post_data = NULL;
SG(request_info).raw_post_data = NULL;
@ -340,6 +341,7 @@ SAPI_API void sapi_activate(TSRMLS_D)
SG(sapi_headers).http_response_code = 200;
*/
SG(sapi_headers).http_status_line = NULL;
SG(sapi_headers).mimetype = NULL;
SG(headers_sent) = 0;
SG(read_post_bytes) = 0;
SG(request_info).post_data = NULL;

Loading…
Cancel
Save