php报错,用不了post请求

249 阅读1分钟

报错信息如下:

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

php5.6的版本在php.ini中的 ( always_populate_raw_post_data = -1 ) 把注释取消了就可以了,还有重启一下服务才能运行