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

李清波 2017-06-07 PHP实例 2690 复制当前网址

PHP Deprecated: Automatically populating $HTTP_RAW_POST_DATA is deprecated

具体报错内容如下(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

文章来源:http://liqingbo.com/blog-1384.html

评论