在php5.6下Hprose for PHP报错:Automatically populating $HTTP_RAW_POST_DATA is deprecated and will be removed in a future version.的解决
1、打开:https://github.com/hprose/hprose-php/blob/master/README_zh_CN.md ,下载Hprose for PHP;
2、以http://www.hprose1.com/http_server.php为服务端,运行结果如图1:
3、以http://www.hprose2.com/http_client.php为客户端,运行结果如图2:报错:
4、在php.ini文件中设置:always_populate_raw_post_data = -1,以http://www.hprose2.com/http_client.php为客户端,再次运行结果如图3:
注:https://bugs.php.net/bug.php?id=66763
近期评论