When passing parameters by the POST method, this notification comes

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. in Unknown on line 0

In stackoverflow , there is already a mention of this problem, but for some reason left unattended: Configuring always_populate_raw_post_data

Nowhere can I find an explanatory explanation for this. I only know that Deprecated is not an error, but a warning that in future versions of PHP this functionality can be removed. This does not affect the work of the script. But still ... What to do next?

1 answer 1

The problem was left without attention as there is a normal solution in the official documentation http://php.net/manual/ru/reserved.variables.httprawpostdata.php Which is very easy to implement (albeit an automatic replacement throughout the project).

  • one
    And the answer is some vague and vague question, it was necessary to close. - AK