bug

求修复wecenter3.22在php7下的微信交互BUG

在php7.2下的wencenter3.22 在和微信交互的时候 会爆:
 
2018/10/09 13:40:32 [error] 9044#0: *154069 FastCGI sent in stderr: "PHP message: PHP Deprecated:  Methods with the same name as their class will not be constructors in a future version of PHP; Services_Weixin_WXBizMsgCrypt has a deprecated constructor in /mnt/www/www.xxx.com/system/Services/Weixin/WXBizMsgCrypt.php on line 18

PHP message: PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Services_Weixin_Prpcrypt has a deprecated constructor in /mnt/www/www.xxx.com/system/Services/Weixin/Prpcrypt.php on line 13" while reading response header from upstream, client: 101.132.57.163, server: www.xxx.com, request: "POST /?/weixin/api/1&signature=cd96ba9983f1a218aaf86c9b0621b1455e63fad4&timestamp=1539063632&nonce=1102138478&openid=o5koG1q4-q3G8UoS_27WK0tn-0-E&encrypt_type=aes&msg_signature=ae4093b42edf6ab9a2bd2215ba90d386a682db1a HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-cgi-72.sock:", host: "www.xxx.com"
求解决方案
 
 
已邀请:

fanta - 有问题请加qq270294661 建站请保留WeCenter版权信息和链接

WXBizMsgCrypt.php   L30
public function Services_Weixin_WXBizMsgCrypt($token, $encodingAesKey, $appId)

修改为

public function __construct($token, $encodingAesKey, $appId)

Prpcrypt.php   L17
function Services_Weixin_Prpcrypt($k)

改为

function __construct($k)

您这样改试试,另外当前只是警告不影响程序运行吧 ?
 
 
 

要回复问题请先登录注册