+
80
-

Automatically populating $HTTP_RAW_POST_DATA is deprecated......

php

今天打开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

请问怎么解决?

高手回复

+
0
-
这个问题和PHP版本有关系,PHP 5.6已经废弃了$HTTP_RAW_POST_DATA。
解决方法:
修改php.ini

always_populate_raw_post_data = -1

然后重启

by ppzhuzhu
我知道答案,我要回答