搜索
开启辅助访问 切换到宽版

QQ登录

只需一步,快速开始

扫一扫,访问微社区

注册 找回密码
查看: 2145|回复: 0

HTTP_RAW_POST_DATA PHP报错

[复制链接]
发表于 2018-7-11 09:25:53 | 显示全部楼层 |阅读模式


报错信息如下:
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

这种PHP声明以后将停用此方法,也会导致程序不能正常运行,或者支付问题,我们发现在PHP 5.6.27版本会出现这个问题,可以将php.ini里面的
always_populate_raw_post_data = -1

设置成 -1 ,默认是关闭的。

在OpenCart3.0版本        php5.6.27会出这个问题,PHP7.1可以正常运行。




回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

站长推荐 上一条 /1 下一条

QQ|手机版|OpenCart - 中文官方网站 ( 蜀ICP备09033774号|人工智能

GMT+8, 2023-12-6 20:07 , Processed in 0.068171 second(s), 23 queries , Gzip On.

快速回复 返回顶部 返回列表