PHP开发遇到错误0001

一、错误信息:

1 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

 

二、解决方法:

1 ; Always populate the $HTTP_RAW_POST_DATA variable. PHP's default behavior is
2 ; to disable this feature and it will be removed in a future version.
3 ; If post reading is disabled through enable_post_data_reading,
4 ; $HTTP_RAW_POST_DATA is *NOT* populated.
5 ; http://php.net/always-populate-raw-post-data
6 always_populate_raw_post_data = -1

 

三、参考:

1、https://www.bram.us/2014/10/26/php-5-6-automatically-populating-http_raw_post_data-is-deprecated-and-will-be-removed-in-a-future-version/

posted @ 2015-12-10 15:52  iYunBlog  阅读(222)  评论(0编辑  收藏  举报