From: Brian France Date: Thu, 19 Aug 2004 20:35:36 +0000 (+0000) Subject: [MFH] If you send a post with a content-type header and then the next post without... X-Git-Tag: php-4.3.9RC2~21 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=88e1d65564ff710f724449d01d3b1c8a821d7f25;p=php [MFH] If you send a post with a content-type header and then the next post without the content-type header, raw_post_data will not be set. This is because SG(request_info).post_entry is set to the first requests function pointer which makes it follow the wrong code path. --- diff --git a/NEWS b/NEWS index cef0f3d267..2bbe062387 100644 --- a/NEWS +++ b/NEWS @@ -1,6 +1,7 @@ PHP 4 NEWS ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| ?? ??? 2004, Version 4.3.9 +- Fixed bug with raw_post_data not getting set (Brian) - Fixed a file-descriptor leak with phpinfo() and other 'special' URLs (Zeev) - Fixed bug #29727 (Added missing CURL authentication directives). (Ilia) - Fixed bug #29719 (fgetcsv() has problem parsing strings ending with escaped diff --git a/main/SAPI.c b/main/SAPI.c index ecbdc3e377..b80435e160 100644 --- a/main/SAPI.c +++ b/main/SAPI.c @@ -331,6 +331,7 @@ SAPI_API void sapi_activate(TSRMLS_D) SG(request_info).current_user = NULL; SG(request_info).current_user_length = 0; SG(request_info).no_headers = 0; + SG(request_info).post_entry = NULL; /* It's possible to override this general case in the activate() callback, if * necessary.