分页: 1 / 1

PHP 7.2 Count() Warning In /includes/functions_messenger.php

发表于 : 2018年6月29日 07:30
davidyin
2018-06-22 16.55.01.png
在运行 php 7.2 的环境中,phpBB 3.2.2 有这样的问题出现。我是在审核同意新帖发布的时候,有个通知用户的选项,同意后出现这样的错误信息。

代码: 全选

[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_messenger.php on line 506: count(): Parameter must be an array or an object that implements Countable
这是 phpBB 3.2.2 的一个 bug,已经在 3.2.3-dev 中修复,如果不介意的话,可以等到下个版本发布的时候,升级就可以了。
也可以自己手工修改相关文件。参考 https://www.phpbb.com/community/viewtop ... &t=2459371

Re: PHP 7.2 Count() Warning In /includes/functions_messenger.php

发表于 : 2018年7月2日 10:15
baoang
估计在5.6中没这个问题吧?

刚升级到7.2.7

Re: PHP 7.2 Count() Warning In /includes/functions_messenger.php

发表于 : 2018年7月3日 02:17
davidyin
baoang 写了: 2018年7月2日 10:15 估计在5.6中没这个问题吧?

刚升级到7.2.7
在7.1也没有问题。

Re: PHP 7.2 Count() Warning In /includes/functions_messenger.php

发表于 : 2018年7月3日 11:44
baoang
哎,没想到最高版本的反而出了问题。

Re: PHP 7.2 Count() Warning In /includes/functions_messenger.php

发表于 : 2018年7月3日 13:31
davidyin
baoang 写了: 2018年7月3日 11:44 哎,没想到最高版本的反而出了问题。
这是phpbb自己的问题,兼容性警告。