<br />
<b>Deprecated</b>: 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 <b>Unknown</b> on line <b>0</b><br />
<br />
<b>Warning</b>: Cannot modify header information - headers already sent in <b>Unknown</b> on line <b>0</b><br />
解决办法:php.ini文件下:开启always_populate_raw_post_data = -1 之后保存重启即可
原因:开启后就可以用 $HTTP_RAW_POST_DATA 接收data,不过通常我们使用 php://input
来源:oschina
链接:https://my.oschina.net/u/2820979/blog/4263254