dmitry Mon Dec 3 16:04:27 2007 UTC Modified files: (Branch: PHP_5_2) /php-src NEWS /php-src/main SAPI.c Log: Fixed crash because of uninitialized SG(sapi_headers).mimetype http://cvs.php.net/viewvc.cgi/php-src/NEWS?r1=1.2027.2.547.2.1024&r2=1.2027.2.547.2.1025&diff_format=u Index: php-src/NEWS diff -u php-src/NEWS:1.2027.2.547.2.1024 php-src/NEWS:1.2027.2.547.2.1025 --- php-src/NEWS:1.2027.2.547.2.1024 Mon Dec 3 15:08:01 2007 +++ php-src/NEWS Mon Dec 3 16:04:26 2007 @@ -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). http://cvs.php.net/viewvc.cgi/php-src/main/SAPI.c?r1=1.202.2.7.2.15&r2=1.202.2.7.2.16&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.16 --- 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:26 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.16 2007/12/03 16:04:26 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