diff options
Diffstat (limited to 'main')
| -rw-r--r-- | main/php_content_types.c | 6 | ||||
| -rw-r--r-- | main/php_variables.c | 1 |
2 files changed, 6 insertions, 1 deletions
diff --git a/main/php_content_types.c b/main/php_content_types.c index d15f6a709d..ebc879bcb2 100644 --- a/main/php_content_types.c +++ b/main/php_content_types.c @@ -65,6 +65,12 @@ SAPI_API SAPI_POST_READER_FUNC(php_default_post_reader) php_stream_rewind(SG(request_info).request_body); SET_VAR_STRINGL("HTTP_RAW_POST_DATA", data, length); + + sapi_module.sapi_error(E_DEPRECATED, + "Automatically populating $HTTP_RAW_POST_DATA is deprecated and " + "will be removed in a future version. To avoid this warning set " + "'always_populate_raw_post_data' to '-1' in php.ini and use the " + "php://input stream instead."); } } } diff --git a/main/php_variables.c b/main/php_variables.c index ab9aee3ae3..9e2675624b 100644 --- a/main/php_variables.c +++ b/main/php_variables.c @@ -734,7 +734,6 @@ static zend_bool php_auto_globals_create_post(const char *name, uint name_len TS if (PG(variables_order) && (strchr(PG(variables_order),'P') || strchr(PG(variables_order),'p')) && - !SG(headers_sent) && SG(request_info).request_method && !strcasecmp(SG(request_info).request_method, "POST")) { sapi_module.treat_data(PARSE_POST, NULL, NULL TSRMLS_CC); |
