主攻帝国 全栈为辅

Automatically populating $HTTP_RAW_POST_DATA is deprecated and will be removed in a future version

phpstudy使用过程中出现如下错误的解决方法:<br /><b>Deprecated</b>: Automatically populating $HTTP_RAW_POST_DATA is deprecated and will be removed in a future ver

phpstudy使用过程中出现如下错误的解决方法:

<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 />

根据以上提示内容,找到phpstudy的php.ini的配置文件,做出如下修改,再重启phpstudy即可。

搜索“”,修改成如下的内容即可,即将前面的分号去掉。