From: Antony Dovgal Date: Tue, 5 Jun 2007 11:24:37 +0000 (+0000) Subject: fix HTTP_RAW_POST_DATA in Unicode mode X-Git-Tag: BEFORE_IMPORT_OF_MYSQLND~526 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b445a2eaa2975c0c0e7dd46762fc959c64dd934d;p=php fix HTTP_RAW_POST_DATA in Unicode mode --- diff --git a/main/php_content_types.c b/main/php_content_types.c index 8dc55f89d7..eb6063e3ba 100644 --- a/main/php_content_types.c +++ b/main/php_content_types.c @@ -52,7 +52,7 @@ SAPI_API SAPI_POST_READER_FUNC(php_default_post_reader) if ((PG(always_populate_raw_post_data) || NULL == SG(request_info).post_entry) && SG(request_info).post_data) { length = SG(request_info).post_data_length; data = estrndup(SG(request_info).post_data, length); - SET_VAR_STRINGL("HTTP_RAW_POST_DATA", data, length); + SET_VAR_ASCII_STRINGL("HTTP_RAW_POST_DATA", data, length); } }