After upgrading the online PHP service to version 5.6.x a few days ago, Php-error.log reported an error:
PHP deprecated:automatically populating $HTTP _raw_post_data is Deprecated
Reason:
The above error means "Automatic variable $http_raw_post_data obsolete (deprecated)"
This issue is related to the PHP version, the PHP5.6 after the high version has been deprecated $http_raw_post_data this global variable setting, you can use Php://input instead of $HTTP _raw_post_data.
Using always_populate_raw_post_data causes e_deprecated errors to be generated when the $http_raw_post_data is populated.
Set Always_populate_raw_post_data as-to experience new behavior because it forces $HTTP _raw_post_data undefined, and therefore does not cause e_deprecated errors) to experience the new behavior.
Workaround:
To modify the php.ini configuration file:
[Email protected] etc]# vim php.ini
........
; Always populate the $HTTP _raw_post_data variable.
; always_populate_raw_post_data = On
Always_populate_raw_post_data =-1
.......
Then restart the PHP service!
PHP error log: PHP deprecated:automatically populating $HTTP _raw_post_data is Deprecated