您现在的位置是:首页 > PHP实例

PHP Deprecated: Automatically populating $HTTP_RAW_POST_DATA is deprecated

李清波2017-06-07PHP实例

具体报错内容如下(php版本5.6)


PHP 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


解决方法:

开启php.ini中的如下配置

always_populate_raw_post_data = -1


如图

QQ截图20170607153902.png

评论