]> granicus.if.org Git - php/commitdiff
Fixed crash because of uninitialized SG(sapi_headers).mimetype
authorDmitry Stogov <dmitry@php.net>
Mon, 3 Dec 2007 16:04:26 +0000 (16:04 +0000)
committerDmitry Stogov <dmitry@php.net>
Mon, 3 Dec 2007 16:04:26 +0000 (16:04 +0000)
NEWS
main/SAPI.c

diff --git a/NEWS b/NEWS
index ec9aee415e3bcaf9317a91919c2b0ca0aa6ce558..404d0de4c9285d3582170ff1e6c5891938c68f41 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -1,6 +1,7 @@
 PHP                                                                        NEWS
 |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
 ?? ??? 2008, PHP 5.2.6
+- Fixed crash because of uninitialized SG(sapi_headers).minetype (Dmitry)
 - Fixed weired behavior in CGI parameter parsing. (Dmitry, Hannes Magnusson)
 
 - Fixed bug #43482 (array_pad() does not warn on very small pad numbers).
index 095adeb0a897f2a14062abfea61270752419a4e6..2e33abce3b8ead87b03d59b6e83367e6c82498aa 100644 (file)
@@ -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;