dmitry Mon Dec 3 16:04:37 2007 UTC Modified files: (Branch: PHP_5_3) /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.202.2.7.2.15&r2=1.202.2.7.2.15.2.1&diff_format=u Index: php-src/main/SAPI.c diff -u php-src/main/SAPI.c:1.202.2.7.2.15 php-src/main/SAPI.c:1.202.2.7.2.15.2.1 --- php-src/main/SAPI.c:1.202.2.7.2.15 Fri May 25 09:20:01 2007 +++ php-src/main/SAPI.c Mon Dec 3 16:04:36 2007 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: SAPI.c,v 1.202.2.7.2.15 2007/05/25 09:20:01 rasmus Exp $ */ +/* $Id: SAPI.c,v 1.202.2.7.2.15.2.1 2007/12/03 16:04:36 dmitry Exp $ */ #include <ctype.h> #include <sys/stat.h> @@ -301,6 +301,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; @@ -340,6 +341,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