dmitry Mon Dec 3 16:04:47 2007 UTC Modified files: /php-src/main SAPI.c Log: Fixed crash because of uninitialized SG(sapi_headers).mimetype http://cvs.php.net/viewvc.cgi/php-src/main/SAPI.c?r1=1.226&r2=1.227&diff_format=u Index: php-src/main/SAPI.c diff -u php-src/main/SAPI.c:1.226 php-src/main/SAPI.c:1.227 --- php-src/main/SAPI.c:1.226 Mon Jul 16 12:58:23 2007 +++ php-src/main/SAPI.c Mon Dec 3 16:04:47 2007 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: SAPI.c,v 1.226 2007/07/16 12:58:23 jani Exp $ */ +/* $Id: SAPI.c,v 1.227 2007/12/03 16:04:47 dmitry Exp $ */ #include <ctype.h> #include <sys/stat.h> @@ -324,6 +324,7 @@ /* 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; @@ -363,6 +364,7 @@ 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;
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php