From: Brian France Date: Thu, 19 Aug 2004 20:34:04 +0000 (+0000) Subject: [MFH] If you send a post with a content-type header and then the next post without... X-Git-Tag: php-5.0.2RC1~114 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=949e461e8f6629a3370c114f9df7706f99f9b482;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 84027ebc40..27cc968f5b 100644 --- a/NEWS +++ b/NEWS @@ -3,6 +3,7 @@ PHP NEWS ?? ??? 2004, PHP 5.0.2 - Added PHP_EOL constant that contains the OS way of representing newlines. (Paul Hudson, Derick) +- Fixed bug with raw_post_data not getting set (Brian) - Fixed a file-descriptor leak with phpinfo() and other 'special' URLs (Zeev) - Fixed bug #29737 (ip2long should return -1 if IP is 255.255.255.255 and FALSE on error). (Tony) - Fixed bug #29711 (Changed ext/xml to default to UTF-8 output). (Rob) diff --git a/main/SAPI.c b/main/SAPI.c index b1e3488f06..7d8c67a0bc 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.